From 901fabf601534810dcdfc40b2d1ce3e56b318f4f Mon Sep 17 00:00:00 2001 From: kennyd3d Date: Fri, 23 Aug 2024 17:06:44 -0700 Subject: [PATCH 1/2] add conditional to step --- .github/workflows/dev.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 8a86407..43c8375 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -35,6 +35,7 @@ jobs: uses: actions/checkout@v4 - name: Preparing job + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') run: | TAG_NAME=${GITHUB_REF#refs/tags/} From 934002c23312237e485ec757c3874f70b8dc062c Mon Sep 17 00:00:00 2001 From: kennyd3d Date: Fri, 23 Aug 2024 17:08:09 -0700 Subject: [PATCH 2/2] fix where conditional should be --- .github/workflows/dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 43c8375..1272812 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -30,12 +30,12 @@ env: jobs: test: runs-on: ubuntu-latest + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') steps: - name: Checkout Code uses: actions/checkout@v4 - name: Preparing job - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') run: | TAG_NAME=${GITHUB_REF#refs/tags/}