Skip to content

Commit

Permalink
Check that the event is for the correct branch
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jun 19, 2024
1 parent 009e7b0 commit 9a49558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/configure-repository.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
first-time-setup:
runs-on: ubuntu-latest

# Ensure is is only run once, when the repository is generated
if: github.run_number == 1
# Ensure is is only run once, when the repository is generated, with a check to ensure it's the master branch
if: github.run_number == 1 && github.ref == 'refs/heads/master'

steps:
- name: Checkout code
Expand Down

0 comments on commit 9a49558

Please sign in to comment.