Skip to content

Commit

Permalink
use gh cli?
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Sep 21, 2023
1 parent 41d0c94 commit 930687d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/sage-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Get PR number
uses: actions/github-script@v4
with:
github-token: ${{ github.token }}
script: |
const pr = context.payload.number;
core.exportVariable('PR_NUMBER', pr);
id: pr
run: echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")"
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down

0 comments on commit 930687d

Please sign in to comment.