Test token variable inside php

This commit is contained in:
crazywhalecc
2025-05-20 23:40:49 +08:00
parent 175f1407cf
commit 6bafacd80d
2 changed files with 1 additions and 2 deletions

View File

@@ -186,8 +186,6 @@ jobs:
- name: "Prepare UPX for Linux" - name: "Prepare UPX for Linux"
if: ${{ startsWith(matrix.os, 'ubuntu-') }} if: ${{ startsWith(matrix.os, 'ubuntu-') }}
run: | 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 }} 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 echo "UPX_CMD=$(php src/globals/test-extensions.php upx)" >> $GITHUB_ENV

View File

@@ -209,6 +209,7 @@ switch ($argv[1] ?? null) {
passthru($prefix . $doctor_cmd, $retcode); passthru($prefix . $doctor_cmd, $retcode);
break; break;
case 'install_upx_cmd': case 'install_upx_cmd':
var_dump(getenv('GITHUB_TOKEN'));
passthru($prefix . $install_upx_cmd, $retcode); passthru($prefix . $install_upx_cmd, $retcode);
break; break;
default: default: