-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (33 loc) · 1.21 KB
/
compile-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
name: 'Compile versions'
on:
schedule:
- cron: '0 */12 * * *'
workflow_dispatch:
concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
compile-versions:
runs-on: 'ubuntu-latest'
steps:
- name: 'Checkout'
uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
- name: 'Setup Go'
uses: 'actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34' # ratchet:actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: 'Get versions list'
run: |-
mkdir -p ./data
go run ./cmd/compile-versions/main.go > ./data/versions.json
echo "Computed versions:"
cat ./data/versions.json
- name: 'Create/Update Pull Request'
uses: 'abcxyz/pkg/.github/actions/create-pull-request@main' # ratchet:exclude
with:
token: '${{ secrets.ACTIONS_BOT_TOKEN }}'
base_branch: '${{ github.ref_name }}'
head_branch: 'actions/compile-versions-${{ github.ref_name }}'
title: 'Update gcloud versions'
body: 'Update latest gcloud versions'
compute_paths: true