Skip to content

Commit 61be043

Browse files
taraxvoidclaude
andcommitted
test: probe api permissions (temporary)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 89bebfc commit 61be043

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/release-please.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ jobs:
3939
client-id: ${{ secrets.RELEASE_BOT_CLIENT_ID }}
4040
private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}
4141

42+
- name: Probe
43+
continue-on-error: true
44+
env:
45+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
46+
run: |
47+
echo "== draft release"
48+
gh api -i -X POST repos/${{ github.repository }}/releases -f tag_name=zz-probe -f target_commitish=main -F draft=true | grep -iE '^(HTTP|x-accepted|x-github-media|\{)' || true
49+
echo "== tag ref at de1ef5f"
50+
gh api -i -X POST repos/${{ github.repository }}/git/refs -f ref=refs/tags/zz-probe-tag -f sha=de1ef5f5b708e081eed2344f6f2930341ee0be90 | grep -iE '^(HTTP|x-accepted|\{)' || true
51+
echo "== tag ref at older commit"
52+
gh api -i -X POST repos/${{ github.repository }}/git/refs -f ref=refs/tags/zz-probe-tag2 -f sha=bb1dabf46b35bd28ac42a11d0bc0c42a40972a2f | grep -iE '^(HTTP|x-accepted|\{)' || true
53+
4254
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
4355
id: release
4456
with:

0 commit comments

Comments
 (0)