File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -507,6 +507,8 @@ jobs:
507
507
- name : Run GQL (on branch)
508
508
uses : ./
509
509
id : ActionOnBranch
510
+ env :
511
+ GitHubToken : ${{ secrets.GitHubToken }}
510
512
- name : Log in to ghcr.io
511
513
uses : docker/login-action@master
512
514
with :
Original file line number Diff line number Diff line change 27
27
name = ' Run GQL (on branch)'
28
28
uses = ' ./'
29
29
id = ' ActionOnBranch'
30
+ env = @ {
31
+ GitHubToken = ' ${{ secrets.GitHubToken }}'
32
+ }
30
33
},
31
34
' BuildAndPublishContainer'
32
35
)
Original file line number Diff line number Diff line change 1
1
# requires -Module GQL
2
- if (-not $GitHubToken ) {
2
+ if (-not $env: GitHubToken ) {
3
3
Write-Warning " No GitHubToken found."
4
4
return
5
5
}
6
6
7
7
Push-Location $PSScriptRoot
8
8
9
9
# First, let's get the query
10
- gql - Query ./ GetSchemaTypes.gql - PersonalAccessToken $GitHubToken - Cache - OutputPath ./ GitHubGraphTypes.json
10
+ gql - Query ./ GetSchemaTypes.gql - PersonalAccessToken $env: GitHubToken - Cache - OutputPath ./ GitHubGraphTypes.json
11
11
12
12
Pop-Location
You can’t perform that action at this time.
0 commit comments