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
20 changes: 20 additions & 0 deletions .github/workflows/tag-probe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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/|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-200 e3ad2eed5587acd2600538953c28a9257ed73cd5
probe rc2 aa721999b9b967ca52e2c71350892df0b5983ed2
Loading