FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
si-reference-library/.github/workflows/debug-integrations.yml at main · jfix/si-reference-library · GitHub
jfix
/
si-reference-library
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
si-reference-library
/
.github
/
workflows
/
debug-integrations.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
100 lines (88 loc) · 3.25 KB
Breadcrumbs
si-reference-library
/
.github
/
workflows
/
debug-integrations.yml
Copy path
File metadata and controls
100 lines (88 loc) · 3.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name
:
Debug Integrations
on
:
workflow_dispatch
:
inputs
:
check_image_wall
:
description
:
"
Run image-wall token and clone checks
"
required
:
false
type
:
boolean
default
:
true
check_ntfy
:
description
:
"
Run ntfy notification check
"
required
:
false
type
:
boolean
default
:
true
ntfy_url
:
description
:
"
Override ntfy endpoint for this debug run
"
required
:
false
default
:
"
"
ntfy_token
:
description
:
"
Override ntfy token for this debug run
"
required
:
false
default
:
"
"
permissions
:
contents
:
read
jobs
:
debug
:
runs-on
:
ubuntu-latest
env
:
NTFY_URL
:
${{ github.event.inputs.ntfy_url || secrets.NTFY_URL }}
NTFY_TOKEN
:
${{ github.event.inputs.ntfy_token || secrets.NTFY_TOKEN }}
steps
:
-
name
:
Checkout reference library
uses
:
actions/checkout@v7
-
name
:
Setup Node
uses
:
actions/setup-node@v6
with
:
node-version
:
24
-
name
:
Show debug toggles
run
:
|
echo "check_image_wall=${{ github.event.inputs.check_image_wall }}"
echo "check_ntfy=${{ github.event.inputs.check_ntfy }}"
-
name
:
Mint image-wall token (GitHub App)
if
:
${{ github.event.inputs.check_image_wall != 'false' }}
id
:
app-token
uses
:
actions/create-github-app-token@v3
with
:
client-id
:
${{ secrets.SI_IMAGE_WALL_APP_ID }}
private-key
:
${{ secrets.SI_IMAGE_WALL_APP_KEY }}
repositories
:
si-image-wall
-
name
:
Validate image-wall token and access
if
:
${{ github.event.inputs.check_image_wall != 'false' }}
env
:
SI_IMAGE_WALL_REPO_TOKEN
:
${{ steps.app-token.outputs.token }}
run
:
|
if [ -z "$SI_IMAGE_WALL_REPO_TOKEN" ]; then
echo "SI_IMAGE_WALL_REPO_TOKEN is empty or unset"
exit 1
fi
echo "Token is present"
echo "Checking remote refs with explicit extraheader override"
git -c "http.https://github.com/.extraheader=" ls-remote "https://x-access-token:${SI_IMAGE_WALL_REPO_TOKEN}@github.com/jfix/si-image-wall.git"
-
name
:
Clone image-wall repo (debug)
if
:
${{ github.event.inputs.check_image_wall != 'false' }}
env
:
SI_IMAGE_WALL_REPO_TOKEN
:
${{ steps.app-token.outputs.token }}
run
:
|
rm -rf si-image-wall-debug
git -c "http.https://github.com/.extraheader=" clone --depth 1 --branch main "https://x-access-token:${SI_IMAGE_WALL_REPO_TOKEN}@github.com/jfix/si-image-wall.git" si-image-wall-debug
test -f si-image-wall-debug/package.json
echo "Clone succeeded"
-
name
:
Prepare minimal report for ntfy
if
:
${{ github.event.inputs.check_ntfy != 'false' }}
run
:
|
mkdir -p tmp
cat > tmp/debug-report.json <<'JSON'
{
"new_invaders": [
{
"invader_id": "TEST_001",
"city": "Debug City",
"code": "TEST"
}
]
}
JSON
-
name
:
Send ntfy debug notification
if
:
${{ github.event.inputs.check_ntfy != 'false' }}
run
:
node scripts/send-ntfy.mjs --report-path tmp/debug-report.json
Back
|
FazBrowse Home
|
New Git URL