Skip to content

Commit

Permalink
chore: use spider bot for releases (#847)
Browse files Browse the repository at this point in the history
* test release with custom token

* cleanup
  • Loading branch information
1xstj authored Dec 5, 2024
1 parent 0b85083 commit 82c865d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,19 @@ jobs:
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "commit_message=$(git log -1 --pretty=%B)" >> $GITHUB_OUTPUT
# Generating a GitHub token, so that tags created by the action
# triggers the other workflows
- name: Generate GitHub token
uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ secrets.WEBB_SPIDER_APP_ID }}
private-key: ${{ secrets.WEBB_SPIDER_PRIV_KEY }}

- name: Create pre-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
with:
tag_name: ${{ steps.commit_info.outputs.sha_short }}
release_name: Tangle Pre-release ${{ steps.commit_info.outputs.sha_short }}
Expand Down

0 comments on commit 82c865d

Please sign in to comment.