Skip to content

Commit 90f9f1d

Browse files
committed
Drop redundant gh auth step (GH_TOKEN env var auths gh directly)
1 parent 5809a34 commit 90f9f1d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/mine-and-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ jobs:
4040
sudo apt-get update -qq && sudo apt-get install -y gh
4141
)
4242
43-
- name: Authenticate gh
44-
env:
45-
GH_TOKEN: ${{ secrets.GH_MINING_TOKEN }}
46-
run: echo "$GH_TOKEN" | gh auth login --with-token
43+
# gh authenticates via the GH_TOKEN environment variable (which we
44+
# already set on each step that calls it); no explicit `gh auth login`
45+
# step needed.
4746

4847
- name: Determine target users
4948
id: targets
@@ -77,6 +76,7 @@ jobs:
7776
working-directory: .
7877
env:
7978
NO_COLOR: "1"
79+
GH_TOKEN: ${{ secrets.GH_MINING_TOKEN }}
8080
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
8181
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
8282
run: |

0 commit comments

Comments
 (0)