Skip to content

Commit

Permalink
Set GH_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Jun 3, 2024
1 parent 34a9295 commit 89d4bf5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/update-downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
GIT_HEAD: ${{ github.actor }}:detsys-ts-update-${{ github.sha }}
TARGET_REPO: ${{ github.repository_owner }}/${{ matrix.repo }}
SOURCE_REPO: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ github.token }} # for `gh pr create`
steps:
- name: Check out ${{ env.TARGET_REPO }}
uses: actions/checkout@v4
with:
repository: ${{ env.TARGET_REPO }}
token: ${{ env.GITHUB_TOKEN }}
token: ${{ env.GH_TOKEN }}

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
Expand Down Expand Up @@ -73,8 +73,6 @@ jobs:
- name: Create pull request against ${{ env.TARGET_REPO }}
run: |
echo "${{ env.GITHUB_TOKEN }}" | gh auth login --with-token
gh pr create \
--base ${{ env.GIT_BASE }} \
--head ${{ env.GIT_HEAD }} \
Expand Down

0 comments on commit 89d4bf5

Please sign in to comment.