-
Notifications
You must be signed in to change notification settings - Fork 40
49 lines (44 loc) · 1.28 KB
/
bump-versions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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' }}