mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Merge pull request #1463 from PowerShell/vors/token
Move GITHUB_TOKEN in tools/download.sh
This commit is contained in:
commit
bad0f47659
3 files changed
+1
-6
No files matched your search
@@ -7,9 +7,6 @@ sudo: required
|
|||||||
dist: trusty
|
dist: trusty
|
||||||
osx_image: xcode8
|
osx_image: xcode8
|
||||||
|
|
||||||
env:
|
|
||||||
- GITHUB_TOKEN=a27573e27bea23fb05393ead69511b09e3b224be
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.dotnet
|
- $HOME/.dotnet
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ Of course, this requires a self-hosted copy of PowerShell on Linux.
|
|||||||
|
|
||||||
Fortunately, this is as easy as downloading and installing the package.
|
Fortunately, this is as easy as downloading and installing the package.
|
||||||
Unfortunately, while the repository is still private, the package cannot be downloaded as simply as with `wget`.
|
Unfortunately, while the repository is still private, the package cannot be downloaded as simply as with `wget`.
|
||||||
We have a script that wraps the GitHub API and uses a personal access token to authorize in order to obtain the package.
|
|
||||||
|
|
||||||
The `./tools/download.sh` script will also install the PowerShell package.
|
The `./tools/download.sh` script will also install the PowerShell package.
|
||||||
|
|
||||||
@@ -50,7 +49,6 @@ The `./tools/download.sh` script will also install the PowerShell package.
|
|||||||
In Bash:
|
In Bash:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
GITHUB_TOKEN=<replace with your token>
|
|
||||||
./tools/download.sh
|
./tools/download.sh
|
||||||
|
|
||||||
powershell
|
powershell
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
[[ -n $GITHUB_TOKEN ]] || { echo >&2 "GITHUB_TOKEN variable is undefined, please provide token"; exit 1; }
|
GITHUB_TOKEN=a27573e27bea23fb05393ead69511b09e3b224be
|
||||||
|
|
||||||
# Authorizes with read-only access to GitHub API
|
# Authorizes with read-only access to GitHub API
|
||||||
curl_() {
|
curl_() {
|
||||||
|
|||||||
Reference in new issue
Block a user