-
Notifications
You must be signed in to change notification settings - Fork 10
57 lines (52 loc) · 1.72 KB
/
versions.yaml
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
50
51
52
53
54
55
56
57
name: Upgrade to latest versions
on:
workflow_dispatch:
schedule:
- cron: '15 */6 * * *'
#push:
# branch: main
env:
golang-version: 1.23.4
jsonnet-version: v0.20.0
jb-version: 3aec759b6a423f5b50751443ccc81e91a0887c02 # Commit from mid February 2022
jobs:
versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-go@v5
with:
go-version: '${{ env.golang-version }}'
- name: Get jsonnet
run: go install github.com/google/go-jsonnet/cmd/jsonnet@${{ env.jsonnet-version }}
- name: Get jsonnet-bundler
run: go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@${{ env.jb-version }}
- name: Get yq
run: go install github.com/mikefarah/yq/v4@latest
- name: Upgrade
run: |
export GITHUB_TOKEN=${{ secrets.PAT_SECRET }}
touch .version-changelog
make upgrade
- name: Read changes
id: version-changelog
uses: juliangruber/read-file-action@v1
with:
path: ./.version-changelog
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: "[bot] Automated version update"
title: "Automated version update"
body: |
This is an automated version update performed from CI on behalf of @paulfantom.
Configuration of the workflow is located in `.github/workflows/versions.yaml`
Changed components:
```
${{ steps.version-changelog.outputs.content }}
```
assignees: paulfantom
labels: enhancement
branch: automated-updates
delete-branch: true
token: ${{ secrets.PAT_SECRET }}