add diff condition check
All checks were successful
Build and push image for doorman-homeassistant / diff (push) Successful in 8s
Build and push Doorman UI / API / diff (push) Successful in 7s
Build and push image for doorman-homeassistant / docker (push) Has been skipped
Build and push image for doorman-homeassistant / deploy-gitainer (push) Has been skipped
Build and push Doorman UI / API / twilio (push) Has been skipped

This commit is contained in:
Martin Dimitrov 2025-10-15 19:33:21 -07:00
parent a4f3468b0c
commit 6ef5b6d289
2 changed files with 2 additions and 15 deletions

View File

@ -13,23 +13,10 @@ jobs:
files: packages/doorman-homeassistant/* files: packages/doorman-homeassistant/*
secrets: secrets:
token: ${{ github.token }} token: ${{ github.token }}
test:
runs-on: ubuntu-22.04
needs: diff
if: ${{ always() }}
steps:
- name: check output
env:
ALLMYVARS: ${{ toJSON(vars) }}
DIFF: ${{ toJSON(needs) }}
run: |
echo $ALLMYVARS
echo $DIFF
docker: docker:
needs: diff needs: diff
if: ${{ needs.diff.outputs.is_changed }} if: ${{ needs.diff.outputs.is_changed == 'true' }}
uses: martin/chromart-gitea-actions/.gitea/workflows/docker-publish-private.yaml@main uses: martin/chromart-gitea-actions/.gitea/workflows/docker-publish-private.yaml@main
with: with:
repository: ${{ github.repository }} repository: ${{ github.repository }}

View File

@ -16,7 +16,7 @@ jobs:
twilio: twilio:
needs: diff needs: diff
if: ${{ needs.diff.outputs.is_changed }} if: ${{ needs.diff.outputs.is_changed == 'true' }}
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4