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