Skip to content

Commit

Permalink
get the pr number a different way?
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Sep 21, 2023
1 parent 60cf4ce commit 0c8f24b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/sage-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get PR number
uses: actions/github-script@v4
with:
github-token: ${{ github.token }}
script: |
const core = require('@actions/core');
const pr = context.payload.number;
core.exportVariable('PR_NUMBER', pr);
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -37,7 +45,7 @@ jobs:
esac
php_short=$(echo "${{ matrix.php-version }}" | tr -d '.')
pr_num=$(echo "${{ github.event.number }}")
pr_num=$PR_NUMBER
multidev_name="${os_short}-${php_short}-${pr_num}"
echo "Generated multidev name: $multidev_name"
Expand Down

0 comments on commit 0c8f24b

Please sign in to comment.