Skip to content

Commit

Permalink
CI: Save PR Number Once (#360)
Browse files Browse the repository at this point in the history
Only run the `save_pr_number` script once per PR.
  • Loading branch information
ax3l committed Aug 29, 2024
1 parent 3f5691a commit 4f197ca
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,3 @@ jobs:
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: sarif-results/${{ matrix.language }}.sarif

save_pr_number:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Save PR number
env:
PR_NUMBER: ${{ github.event.number }}
run: |
echo $PR_NUMBER > pr_number.txt
- uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr_number.txt
retention-days: 1

0 comments on commit 4f197ca

Please sign in to comment.