Skip to content

Commit b3dc7a4

Browse files
probe (temporary, do not merge): what XIM_PKGINDEX_TOKEN may do on xim-pkgindex
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
1 parent c6da993 commit b3dc7a4

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: probe pkgindex token
2+
3+
# Temporary (do not merge): what XIM_PKGINDEX_TOKEN may do on
4+
# openxlings/xim-pkgindex. A repository_dispatch whose event type nothing
5+
# listens to starts nothing there.
6+
on:
7+
push:
8+
branches: [probe/pkgindex-token]
9+
10+
permissions: {}
11+
12+
jobs:
13+
probe:
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- name: dispatches and the token's permissions
17+
env:
18+
GH_TOKEN: ${{ secrets.XIM_PKGINDEX_TOKEN }}
19+
run: |
20+
set +e
21+
echo "repository_dispatch:"
22+
gh api -X POST repos/openxlings/xim-pkgindex/dispatches -f event_type=mcpp-token-probe -i 2>&1 | head -1
23+
echo "workflow_dispatch:"
24+
gh api -X POST repos/openxlings/xim-pkgindex/actions/workflows/xpkgindex-update.yml/dispatches -f ref=main -f 'inputs[dry_run]=true' -i 2>&1 | head -1
25+
echo "repository permissions:"
26+
gh api repos/openxlings/xim-pkgindex -q '.permissions' 2>&1

0 commit comments

Comments
 (0)