Skip to content

Commit

Permalink
set GH_TOKEN env var
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Jan 1, 2024
1 parent a180eb7 commit e6f8308
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/dependabot-prs-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
jobs:
list-prs:
runs-on: ubuntu-latest

env:
GH_TOKEN: ${{ secrets.NIGHTLY_GH_PAT }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -30,14 +31,12 @@ jobs:
strategy:
matrix:
pr: ${{ fromJson(needs.list-prs.outputs.prs) }}

env:
GH_TOKEN: ${{ secrets.NIGHTLY_GH_PAT }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login with CI token
run: gh auth login --with-token < ${{ secrets.NIGHTLY_GH_PAT }}

- name: Merge PR
run: |
set +e
Expand Down

0 comments on commit e6f8308

Please sign in to comment.