Skip to content

Commit

Permalink
ci: replce hub with gh CLI (#4326)
Browse files Browse the repository at this point in the history
It looks like `hub` was removed from all newer versions of GitHub
Actions and users are required to install it on their systems to be able
to use it. Instead of using `hub` this PR replaces it with `gh` cli

No QA required
  • Loading branch information
michael-siek committed Feb 5, 2024
1 parent 2bdfc57 commit 666558d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ jobs:
--output-indicator-new=! CHANGELOG.md | egrep '^!' | awk -F'^[!]' '{print $2}' | sed -e 's/\n/$0A/g'
)
echo "chore(release): v$Version" > /tmp/pr.txt
echo "" >> /tmp/pr.txt
echo "$ReleaseNotes" >> /tmp/pr.txt
echo "" >> /tmp/pr.txt
echo "This PR was opened by a robot :robot: :tada:" >> /tmp/pr.txt
hub pull-request --file /tmp/pr.txt --base master
gh pr create --title "chore(release): v$Version" --body-file "/tmp/pr.txt" --base master
env:
GITHUB_TOKEN: ${{ secrets.PAT }}

0 comments on commit 666558d

Please sign in to comment.