Bump Provider and Module Versions #21699
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 | |
# Use global lock | |
# | |
# https://github.com/opentofu/registry/pull/272#discussion_r1511031778 | |
concurrency: | |
group: main | |
on: | |
schedule: | |
- cron: '0,15,30,45 * * * *' | |
workflow_dispatch: | |
inputs: | |
environment: | |
type: choice | |
description: The environment of the Registry | |
options: | |
- Development | |
- Production | |
jobs: | |
bump-versions: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
environment: | |
name: ${{ inputs.environment || 'Production' }} | |
permissions: | |
contents: write | |
actions: write | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
strategy: | |
matrix: | |
prefix: ["0", "1", "2", "3", "4", "5", "6", "7", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: './src/go.mod' | |
cache-dependency-path: './src/go.sum' | |
- name: Bump Versions | |
run: ./.github/workflows/bump-versions.sh | |
env: | |
PREFIX: ${{ matrix.prefix }} | |
ENVIRONMENT: ${{ inputs.environment || 'Production' }} |