Skip to content

Commit d314d28

Browse files
committed
Pass custom GH_TOKEN into examples.yml workflow
1 parent bd89a96 commit d314d28

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/examples.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
- "created"
1616
workflow_dispatch:
1717

18+
env:
19+
GH_TOKEN: ${{ secrets.PAT }}
20+
1821
jobs:
1922
scripts-are-run-and-what-it-returns-is-available-via-outputs:
2023
runs-on: ubuntu-latest

lib/mix/tasks/e2e/update_examples_workflow.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ defmodule Mix.Tasks.E2e.UpdateExamplesWorkflow do
7777
- "created"
7878
workflow_dispatch:
7979
80+
env:
81+
GH_TOKEN: ${{ secrets.PAT }}
82+
8083
jobs:
8184
""" <> jobs
8285
end

test/mix/tasks/e2e/update_examples_workflow_test.exs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ defmodule Mix.Tasks.E2e.UpdateExamplesWorkflowTest do
3535
- "created"
3636
workflow_dispatch:
3737
38+
env:
39+
GH_TOKEN: ${{ secrets.PAT }}
40+
3841
jobs:
3942
io-visible-in-logs-and-return-value-available-via-outputs:
4043
runs-on: ubuntu-latest
@@ -85,6 +88,9 @@ defmodule Mix.Tasks.E2e.UpdateExamplesWorkflowTest do
8588
- "created"
8689
workflow_dispatch:
8790
91+
env:
92+
GH_TOKEN: ${{ secrets.PAT }}
93+
8894
jobs:
8995
io-visible-in-logs-and-return-value-available-via-outputs:
9096
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)