Skip to content

Commit

Permalink
Comment on limited commit SHAs
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Jan 16, 2025
1 parent 3a7af71 commit 409084e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ runs:
sha="$(git rev-parse HEAD)"
echo "sha=$sha" | tee -a "$GITHUB_OUTPUT"
# When building the Docker image we'll generate tags and annotations which include
# the commit SHA. Due to limitations with `docker/metadata-action` it's rather
# difficult to get this working for an arbitrary commit. For now we'll limit this
# action to only either using the PR merge commit (default when checking out) or
# the PR/branch/tag head. Updating this action to support arbitrary actions can
# be made into a feature release.
# https://github.com/beacon-biosignals/docker-build/issues/2
case "$sha" in
"${{ github.event.pull_request.head.sha }}")
is_pr_head_sha=true
Expand Down

0 comments on commit 409084e

Please sign in to comment.