Skip to content

Commit

Permalink
Use GITHUB_RUN_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
pweyck committed Jan 29, 2024
1 parent f4d25b8 commit 97db9e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Generate Matrix
id: generate-matrix
run: |
MATRIX=$(GH_JOB_ID=${{ github.job }} php matrix.php)
MATRIX=$(php matrix.php)
echo "matrix<<EOF" >> $GITHUB_OUTPUT
echo "$MATRIX" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

$phpDigest = get_digest_of_image('library/php', $patchVersion['version'] . '-fpm-alpine');

$imagePrefix = $_ENV['GH_JOB_ID'] ? ($_ENV['GH_JOB_ID'] . '_') : '';
$imagePrefix = $_SERVER['GITHUB_RUN_ID'] ? ($_SERVER['GITHUB_RUN_ID'] . '-') : '';

$data[] = [
'php' => $supportedVersion,
Expand Down

0 comments on commit 97db9e7

Please sign in to comment.