ci: Skip build job on tag pushes (deploy rebuilds)
This commit is contained in:
@@ -21,6 +21,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
name: Build Firmware
|
name: Build Firmware
|
||||||
needs: [cppcheck, flawfinder, gitleaks]
|
needs: [cppcheck, flawfinder, gitleaks]
|
||||||
|
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
||||||
runs-on: anvil
|
runs-on: anvil
|
||||||
container:
|
container:
|
||||||
image: docker.io/espressif/idf:v5.3
|
image: docker.io/espressif/idf:v5.3
|
||||||
@@ -87,7 +88,7 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
name: Deploy to ESP Fleet
|
name: Deploy to ESP Fleet
|
||||||
runs-on: anvil
|
runs-on: anvil
|
||||||
needs: build
|
needs: [cppcheck, flawfinder, gitleaks]
|
||||||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.deploy == 'true' || startsWith(github.ref, 'refs/tags/v')
|
if: github.event_name == 'workflow_dispatch' && github.event.inputs.deploy == 'true' || startsWith(github.ref, 'refs/tags/v')
|
||||||
container:
|
container:
|
||||||
image: docker.io/espressif/idf:v5.3
|
image: docker.io/espressif/idf:v5.3
|
||||||
|
|||||||
Reference in New Issue
Block a user