Skip to content

Commit

Permalink
Merge pull request #188116 from Homebrew/missing-head-sha
Browse files Browse the repository at this point in the history
dispatch-build-bottle: fix missing `head_sha`
  • Loading branch information
carlocab authored Sep 12, 2024
2 parents 7721a65 + 457eb66 commit 76d42b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/dispatch-build-bottle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ jobs:
run: |
brew pr-upload --verbose --keep-old --committer="$BREWTESTBOT_NAME_EMAIL" --root-url="https://ghcr.io/v2/homebrew/core"
echo "title=$(git -C "$HOMEBREW_CORE_PATH" log -1 --format='%s' "$BOTTLE_BRANCH")" >> "$GITHUB_OUTPUT"
echo "head_sha=$(git -C "$HOMEBREW_CORE_PATH" rev-parse HEAD)"
- name: Push commits
uses: Homebrew/actions/git-try-push@master
Expand Down Expand Up @@ -292,7 +293,7 @@ jobs:
env:
GH_TOKEN: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}
NODE_ID: ${{steps.create-pr.outputs.node_id}}
SHA: ${{steps.create-pr.outputs.head_sha}}
SHA: ${{steps.upload.outputs.head_sha}}
MUTATION: |-
mutation ($input: EnablePullRequestAutoMergeInput!) {
enablePullRequestAutoMerge(input: $input) {
Expand Down

0 comments on commit 76d42b9

Please sign in to comment.