Bump Provider and Module Versions #7
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 Provider and Module Versions | |
on: | |
schedule: | |
- cron: '5 * * * *' | |
workflow_dispatch: | |
jobs: | |
bump-versions: | |
runs-on: ubuntu-latest | |
environment: Development | |
permissions: | |
contents: write | |
actions: write | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: './src/go.mod' | |
- name: Run version bump script | |
working-directory: ./src | |
run: go run ./cmd/bump-versions | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
file_pattern: 'modules/**/* providers/**/*' | |
commit_user_name: Auto Version Bumper | |
- name: Invoke publish workflow | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: generate-and-deploy.yml |