Skip to content

Commit 3f41b17

Browse files
author
James Brundage
committed
fix: Using Action and adding example ( Fixes #4, Fixes #5, Fixes #9 )
Renaming secret environment variable
1 parent 873266c commit 3f41b17

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/BuildGQL.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ jobs:
508508
uses: ./
509509
id: ActionOnBranch
510510
env:
511-
GitHubToken: ${{ secrets.READ_ONLY_TOKEN }}
511+
ReadOnlyToken: ${{ secrets.READ_ONLY_TOKEN }}
512512
- name: Log in to ghcr.io
513513
uses: docker/login-action@master
514514
with:

Build/GitHub/Jobs/BuildGQL.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
uses = './'
2929
id = 'ActionOnBranch'
3030
env = @{
31-
GitHubToken = '${{ secrets.READ_ONLY_TOKEN }}'
31+
ReadOnlyToken = '${{ secrets.READ_ONLY_TOKEN }}'
3232
}
3333
},
3434
'BuildAndPublishContainer'

Examples/GitGraphTypes.gql.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#requires -Module GQL
2-
if (-not $env:GitHubToken) {
3-
Write-Warning "No GitHubToken found."
2+
if (-not $env:ReadOnlyToken) {
3+
Write-Warning "No ReadOnlyToken found."
44
return
55
}
66

77
Push-Location $PSScriptRoot
88

99
# First, let's get the query
10-
gql -Query ./GetSchemaTypes.gql -PersonalAccessToken $env:GitHubToken -Cache -OutputPath ./GitHubGraphTypes.json
10+
gql -Query ./GetSchemaTypes.gql -PersonalAccessToken $env:ReadOnlyToken -Cache -OutputPath ./GitHubGraphTypes.json
1111

1212
Pop-Location

0 commit comments

Comments
 (0)