Skip to content

Commit 7b716ed

Browse files
authored
ci: fix OpenURI::HTTPError: 401 Unauthorized error (#5206)
**Which issue(s) this PR fixes**: Fixes # **What this PR does / why we need it**: With #5169, it introduced rake task to backport Pull requests, but it needs to pass GITHUB_TOKEN for internal script. **Docs Changes**: N/A **Release Note**: N/A --------- Signed-off-by: Kentaro Hayashi <[email protected]>
1 parent 2d6b8bb commit 7b716ed

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/backport.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Backport
1+
name: Backport Pull Requests
22

33
on:
44
schedule:
@@ -22,15 +22,17 @@ jobs:
2222
ruby-version: ['3.4']
2323
task: ['backport:v1_16', 'backport:v1_19']
2424

25-
name: Backport PR on ${{ matrix.os }}
25+
name: Backport PR ( ${{ matrix.task }} )
2626
steps:
2727
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2828
- name: Set up Ruby
2929
uses: ruby/setup-ruby@ac793fdd38cc468a4dd57246fa9d0e868aba9085 # v1.270.0
3030
with:
3131
ruby-version: ${{ matrix.ruby-version }}
3232
bundler-cache: true
33-
- name: Run backport task
33+
- name: Run backport task ( ${{ matrix.task }} )
3434
shell: bash
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3537
run: |
3638
bundle exec rake ${{ matrix.task }}

0 commit comments

Comments
 (0)