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
19 changes: 19 additions & 0 deletions .github/workflows/tag-probe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: tag-probe
on: pull_request
permissions:
contents: write
jobs:
probe:
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
R: ${{ github.repository }}
run: |
probe() {
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/|"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-anchored 50e819a65a4b39fa7a198860e1c9f3039fc0cbab
Loading