Skip to content

Commit

Permalink
Fail if we must build a container in a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed May 3, 2024
1 parent db827cf commit bcbf8d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ jobs:
fi
fi
if [[ $build_image == "true" && $GITHUB_EVENT_NAME == "pull_request" ]]; then
echo "Cannot build a new container within a PR. Please re-run this action after $head_image:$tag_name is built."
exit 1
fi
echo "build_image=$build_image" >> $GITHUB_OUTPUT
echo "tag_name=$tag_name" >> $GITHUB_OUTPUT
echo "image_name=$image_name" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit bcbf8d4

Please sign in to comment.