Skip to content

Commit

Permalink
fix: use run_number in workflow check
Browse files Browse the repository at this point in the history
  • Loading branch information
marvel-uiuc committed Jul 16, 2024
1 parent 4bd6823 commit 1bc33fe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/templating.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: Apply caz templating

on:
create
on: [push]

jobs:
run-caz:
# Avoid running more than once
if: ${{ github.event.ref == github.event.master_branch }}
if: ${{ github.repository != 'web-illinois/toolkit-template' && github.repository != 'marvel-uiuc/template-ilw' && github.run_number == 1 }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref }}
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: 20
Expand Down

0 comments on commit 1bc33fe

Please sign in to comment.