Skip to content

Commit

Permalink
Specify -H for PR creations (#758)
Browse files Browse the repository at this point in the history
* Specify -H for PR creations

Signed-off-by: egibs <[email protected]>

* Quote GITHUB_OUTPUT

Signed-off-by: egibs <[email protected]>

---------

Signed-off-by: egibs <[email protected]>
  • Loading branch information
egibs authored Jan 14, 2025
1 parent e054788 commit 7e7b469
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/third-party.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ jobs:
git commit -m "Update third-party rules as of ${DATE}"
git push origin "$BRANCH"
gh pr create -t "Update third-party rules as of ${DATE}" -b "${DATE} third-party rule update for malcontent." -B main
gh pr create -t "Update third-party rules as of ${DATE}" -b "${DATE} third-party rule update for malcontent." -B main -H "$BRANCH"
fi
shell: bash
8 changes: 5 additions & 3 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ jobs:
git add ${{ env.VERSION_FILE }}
git commit -m "Bump malcontent version to $VERSION"
git push origin "$BRANCH"
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "BRANCH=$BRANCH" >> "$GITHUB_OUTPUT"
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
- name: Create Pull Request
env:
GH_TOKEN: ${{ steps.octo-sts.outputs.token }}
run: |
BRANCH=${{ steps.update.outputs.BRANCH }}
VERSION=${{ steps.update.outputs.VERSION }}
gh pr create -t "Update malcontent to $VERSION" -b "PR to update the version in ${{ env.VERSION_FILE }} to $VERSION" -B main
gh pr create -t "Update malcontent to $VERSION" -b "PR to update the version in ${{ env.VERSION_FILE }} to $VERSION" -B main -H "$BRANCH"

0 comments on commit 7e7b469

Please sign in to comment.