Skip to content

Commit

Permalink
ci: Remove unnecessary context variable from workflow file
Browse files Browse the repository at this point in the history
For some reason if: github.run_number == 1 blocked this workflow job.
Now, the action will only run when a pull request is opened or
converted from draft to ready for review.
  • Loading branch information
piotrnarajowski authored and mkasenberg committed Apr 25, 2024
1 parent 73ef0e0 commit 83d868c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/check_pr_changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ name: Check PR for changes in autopts/wid/

on:
pull_request:
types: [review_requested, ready_for_review, opened, ]
types: [ready_for_review, opened]
branches:
- master

jobs:
check_changes:
runs-on: ubuntu-latest
if: github.run_number == 1
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down

0 comments on commit 83d868c

Please sign in to comment.