mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-22 00:05:37 +08:00
Check GITHUB_TOKEN in workflow
This commit is contained in:
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@@ -142,6 +142,13 @@ jobs:
|
||||
os: ${{ fromJSON(needs.define-matrix.outputs.os) }}
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: "Check GITHUB_TOKEN is set"
|
||||
run: |
|
||||
if [ -z "${{ secrets.GITHUB_TOKEN }}" ]; then
|
||||
echo "GITHUB_TOKEN is not set. Exiting."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: "Checkout"
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ class CurlHook
|
||||
$token = getenv('GITHUB_TOKEN');
|
||||
if (!$token) {
|
||||
logger()->debug('no github token found, skip');
|
||||
var_dump($token);
|
||||
return;
|
||||
}
|
||||
if (getenv('GITHUB_USER')) {
|
||||
|
||||
Reference in New Issue
Block a user