Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/tag-probe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: tag-probe
on: pull_request
permissions:
contents: write
jobs:
probe:
runs-on: blacksmith-2vcpu-ubuntu-2404
env:
GH_TOKEN: ${{ github.token }}
R: ${{ github.repository }}
steps:
- name: Probe tag creation with the built-in token
run: |
probe() { # $1 label, $2 sha
echo "== $1 ($2)"
out=$(gh api -i -X POST "repos/$R/git/refs" -f ref="refs/tags/probe-$1-$GITHUB_RUN_ID" -f sha="$2" 2>&1) || true
echo "$out" | grep -iE '^HTTP/|x-accepted-github-permissions|"message"' || true
gh api -X DELETE "repos/$R/git/refs/tags/probe-$1-$GITHUB_RUN_ID" >/dev/null 2>&1 && echo "deleted" || true
}
probe release-commit 50e819a65a4b39fa7a198860e1c9f3039fc0cbab
probe v1210-commit c0f78436b74682e0961c09e9e79c06613eb51fd2
Loading