Merge pull request #39 from bpg/renovate/docker.io-library-alpine-3.x #15
This file contains 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: Bump Version | |
# The action uses the GitHub App token to create a tag and push it to the repository. | |
# This is required because the default GITHUB_TOKEN does not trigger other actions, such as the publish action on tag push. | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.github/**' | |
- 'README.md' | |
jobs: | |
bump: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: "Generate Short Lived OAuth App Token (ghs_*)" | |
uses: actions/create-github-app-token@v1.11.0 | |
id: app-token | |
with: | |
app-id: "${{ secrets.BPG_APP_ID }}" | |
private-key: "${{ secrets.BPG_APP_PRIVATE_KEY }}" | |
owner: "${{ github.repository_owner }}" | |
repositories: "${{ github.event.repository.name }}" | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Bump version and push tag | |
uses: anothrNick/github-tag-action@1.71.0 | |
env: | |
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
WITH_V: true |