Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2b52dd4

Browse files
author
James Brundage
committedDec 19, 2024·
feat: Using Action and adding example ( Fixes #4, Fixes #5, Fixes #9 )
1 parent f9db8d1 commit 2b52dd4

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed
 

‎.github/workflows/BuildGQL.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,9 @@ jobs:
504504
uses: StartAutomating/EZOut@master
505505
- name: UseHelpOut
506506
uses: StartAutomating/HelpOut@master
507+
- name: Run GQL (on branch)
508+
uses: ./
509+
id: ActionOnBranch
507510
- name: Log in to ghcr.io
508511
uses: docker/login-action@master
509512
with:

‎Build/GitHub/Jobs/BuildGQL.psd1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@
2323
},
2424
'RunEZOut',
2525
'RunHelpOut'
26-
<#@{
27-
name = 'Run HtmxPS (on branch)'
28-
if = '${{github.ref_name != ''main''}}'
26+
@{
27+
name = 'Run GQL (on branch)'
2928
uses = './'
3029
id = 'ActionOnBranch'
31-
},#>
30+
},
3231
'BuildAndPublishContainer'
3332
)
3433
}

‎Examples/GitGraphTypes.gql.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#requires -Module GQL
2+
if (-not $GitHubToken) {
3+
Write-Warning "No GitHubToken found."
4+
return
5+
}
6+
7+
Push-Location $PSScriptRoot
8+
9+
# First, let's get the query
10+
gql -Query ./GetSchemaTypes.gql -PersonalAccessToken $GitHubToken -Cache -OutputPath ./GitHubGraphTypes.json
11+
12+
Pop-Location

0 commit comments

Comments
 (0)
Please sign in to comment.