Skip to content

Commit f20ca6d

Browse files
authored
Switch actions from hub to gh cli (#13303)
GH actions no longer provide `hub` in the path by default so we're switching to `gh`. Follow-up to #13300
1 parent e9ee40a commit f20ca6d

2 files changed

Lines changed: 10 additions & 13 deletions

File tree

.github/workflows/datamodel-doc.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ jobs:
6868
git push -f origin auto-datamodel-doc
6969
7070
# Send pull request
71-
# We need to use "hub" ourselves because alisw/pull-request gets
71+
# We need to use "gh" ourselves because alisw/pull-request gets
7272
# confused when multiple repos are checked out.
73-
hub pull-request -b AliceO2Group:master -h alibuild:auto-datamodel-doc \
74-
--no-edit --no-maintainer-edits -m 'Automatic data model update' \
75-
-m "This update to the data model documentation was automatically created from tonight's O2 dev branch." ||
76-
: # If the PR already exists, hub fails, but we've just force-pushed, so we don't need a new PR.
73+
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} gh pr create -B \
74+
AliceO2Group:master -H alibuild:auto-datamodel-doc \
75+
--no-maintainer-edit -t 'Automatic data model update' -b 'This update \
76+
to the data model documentation was automatically created from \
77+
tonight's O2 dev branch.' || true
78+
# If the PR already exists, hub fails, but we've just force-pushed, so we don't need a new PR.

.github/workflows/reports.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@ jobs:
126126
git config --global user.name "GitHub Action Bot"
127127
git commit -m "Updated README" -a || echo "No changes to commit"
128128
git push origin HEAD:changelog -f
129-
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \
130-
hub pull-request -f -b dev -h changelog \
131-
--no-edit --no-maintainer-edits \
132-
'Auto-generated changelog' \
133-
-m 'The following changelog has been automatically generated.' ||
134-
# If the PR already exists, the force-push will have updated it.
135-
# It's fine if this step fails.
136-
true
129+
# If the PR already exists, the force-push will have updated it.
130+
# It's fine if this step fails.
131+
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} gh pr create -B dev -H changelog -t 'Auto-generated changelog' -b 'The following changelog has been automatically generated.' || true

0 commit comments

Comments
 (0)