Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Azuki-bar committed Nov 9, 2023
1 parent bb7fd08 commit b477660
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ jobs:
if [[ "${{ github.event_name == 'push' && startsWith(steps.extract_branch.outputs.branch , 'deployment') }}" == "true" ]]; then
echo "push_detector=true" >> $GITHUB_OUTPUT
else
FILES_TO_CHECK=(".github/workflows/publish-images.yml" "docker-bake.hcl")
CHECK_COMMAND=$(printf ' . == "%s" or' "${FILES_TO_CHECK[@]}")
CHECK_COMMAND=${CHECK_COMMAND%or}
if `gh pr view --json files --jq '[.files.[].path]'|jq -e 'map(${CHECK_COMMAND})) |any'`; then
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_detector=true" >> $GITHUB_OUTPUT
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
group "default" {
targets = [
"state-manager"
"state-manager",
"dashboard"
]
}
Expand Down

0 comments on commit b477660

Please sign in to comment.