From 802c997e4ea94975f161bece9cbf20e6c876206a Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Wed, 9 Feb 2022 23:15:56 +0200 Subject: [PATCH] github: Update workflows. * Fix build trigger on create branch. --- .github/workflows/firmware.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/firmware.yml b/.github/workflows/firmware.yml index 2e78bbb44..3d37ef12f 100644 --- a/.github/workflows/firmware.yml +++ b/.github/workflows/firmware.yml @@ -1,13 +1,9 @@ name: 'Building Firmware 🔥' on: - create: - branches: - - "!**" + push: tags: - 'v*.*.*' - - push: branches: - 'master' paths: @@ -55,7 +51,7 @@ jobs: release: needs: build runs-on: ubuntu-20.04 - if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v') + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') steps: - name: '⏳ Checkout repository' uses: actions/checkout@v2 @@ -88,7 +84,7 @@ jobs: development: needs: build runs-on: ubuntu-20.04 - if: github.event_name == 'push' + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') == false steps: - name: '⏳ Checkout repository' uses: actions/checkout@v2