From ab5cf13088871b1858b64837493ac75019c337fe Mon Sep 17 00:00:00 2001 From: David Meyer Date: Tue, 19 Mar 2024 17:38:15 -0400 Subject: [PATCH 1/3] Ensures workflow only runs on tag creation or pull requests, instead of every commit. --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ccd096b..288283c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,7 +1,7 @@ name: Build firmware on: - create: + push: tags: - '[0-9]+\.[0-9]+\.[0-9]+*' pull_request: From bfca9bcdf7a3373eface8225957412149f50cf1e Mon Sep 17 00:00:00 2001 From: David Meyer Date: Sat, 13 Apr 2024 14:16:08 -0400 Subject: [PATCH 2/3] Use correct tag check for release --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 288283c..16322b3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -28,7 +28,7 @@ jobs: path: build/prawnblaster/*.uf2 - name: Create release - if: ${{ github.event.ref_type == 'tag' }} + if: (github.event_name == 'push' && contains(github.ref, '/tags')) uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" From 8feb0cccb2de510b8f4a5a4fd15fdbf41d3126a6 Mon Sep 17 00:00:00 2001 From: David Meyer Date: Sat, 13 Apr 2024 14:16:17 -0400 Subject: [PATCH 3/3] Update action pin --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 16322b3..5e9b0e5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,7 +13,7 @@ jobs: name: Build firmware steps: - name: Check out this repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build Docker image run: docker compose build --pull --build-arg APT_MIRROR="http://azure.archive.ubuntu.com/ubuntu/"