mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-22 08:15:35 +08:00
Test token variable inside php
This commit is contained in:
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -186,8 +186,6 @@ jobs:
|
||||
- name: "Prepare UPX for Linux"
|
||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||
run: |
|
||||
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
|
||||
echo "My Token:[ $GITHUB_TOKEN ]"
|
||||
php src/globals/test-extensions.php install_upx_cmd ${{ matrix.os }} ${{ matrix.php }}
|
||||
echo "UPX_CMD=$(php src/globals/test-extensions.php upx)" >> $GITHUB_ENV
|
||||
|
||||
|
||||
@@ -209,6 +209,7 @@ switch ($argv[1] ?? null) {
|
||||
passthru($prefix . $doctor_cmd, $retcode);
|
||||
break;
|
||||
case 'install_upx_cmd':
|
||||
var_dump(getenv('GITHUB_TOKEN'));
|
||||
passthru($prefix . $install_upx_cmd, $retcode);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user