From 4bd6823efb362aff9c9cee835fa0fc6d1185b0df Mon Sep 17 00:00:00 2001 From: Mikael Arvola Date: Tue, 16 Jul 2024 09:09:42 -0500 Subject: [PATCH] fix: use create workflow instead of push --- .github/workflows/templating.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/templating.yml b/.github/workflows/templating.yml index d0b2fe8..4540dcf 100644 --- a/.github/workflows/templating.yml +++ b/.github/workflows/templating.yml @@ -1,11 +1,12 @@ name: Apply caz templating -on: [push] +on: + create jobs: run-caz: # Avoid running more than once - if: ${{ github.repository != 'web-illinois/toolkit-template' && github.repository != 'marvel-uiuc/template-ilw' && hashFiles('template/package.json') != '' }} + if: ${{ github.event.ref == github.event.master_branch }} runs-on: ubuntu-latest permissions: contents: write @@ -13,7 +14,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - ref: ${{ github.head_ref }} + ref: ${{ github.ref }} - uses: actions/setup-node@v4 with: node-version: 20