only redeploy gitainer when diff exists
This commit is contained in:
parent
91e699db09
commit
621a54e43f
@ -5,7 +5,18 @@ on:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
diff:
|
||||
uses: martin/chromart-gitea-actions/.gitea/workflows/diff-output.yaml@main
|
||||
with:
|
||||
repository: ${{ github.repository }}
|
||||
ref: ${{ github.ref }}
|
||||
files: .gitea/workflows/*
|
||||
secrets:
|
||||
token: ${{ github.token }}
|
||||
|
||||
deploy-gitainer:
|
||||
needs: diff
|
||||
if: ${{ needs.diff.outputs.is_changed == 'true' }}
|
||||
uses: martin/chromart-gitea-actions/.gitea/workflows/gitainer-deploy.yaml@main
|
||||
with:
|
||||
stack_name: gitea_act_runner
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user