feat: default GITHUB_TOKEN to github.token (#579)
#22
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tag creation | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Get the version | |
| id: version | |
| run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - uses: apexskier/github-semver-parse@v1 | |
| id: semver | |
| with: | |
| version: ${{ steps.version.outputs.VERSION }} | |
| - name: Release | |
| if: ${{ steps.semver.outputs.version }} | |
| uses: softprops/action-gh-release@v1 | |
| env: | |
| # use a separate token to allow the release to trigger builds | |
| GITHUB_TOKEN: ${{ secrets.DEPENDABOT_GITHUB_TOKEN}} | |
| with: | |
| tag_name: ${{ steps.version.outputs.VERSION }} | |
| prerelease: ${{ !!steps.semver.outputs.prerelease }} |