diff --git a/.github/workflows/publish-images.yml b/.github/workflows/publish-images.yml index b332f65e..6aa2e1e3 100644 --- a/.github/workflows/publish-images.yml +++ b/.github/workflows/publish-images.yml @@ -49,14 +49,17 @@ jobs: if [[ "${{ github.event_name == 'push' && startsWith(steps.extract_branch.outputs.branch , 'deployment') }}" == "true" ]]; then echo "push to deployment branch" echo "push_detector=true" >> $GITHUB_OUTPUT + exit 0 else if `gh pr view --json files --jq '[.files.[].path]'|jq -e 'map(. == ".github/workflows/publish-images.yml" or . == "docker-bake.hcl") |any'`; then echo "push to development branch and changed docker-bake.hcl or .github/workflows/publish-images.yml" echo "push_detector=true" >> $GITHUB_OUTPUT + exit 0 fi fi echo "push to development branch and not changed docker-bake.hcl or .github/workflows/publish-images.yml" echo "push_detector=false" >> $GITHUB_OUTPUT + exit 0 env: GH_TOKEN: ${{ github.token }}