-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.69 KB
/
update-checksum.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
name: update aqua checksum
on:
push:
branches:
- "main"
pull_request:
paths:
- "common/config/aquaproj-aqua/*"
- ".github/workflows/update-checksum.yaml"
jobs:
update-aqua-checksum:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/cache@v3
with:
path: ~/.local/share/aquaproj-aqua
key: v1-aqua-installer-${{runner.os}}-${{runner.arch}}-${{hashFiles('**/aqua.yaml')}}
restore-keys: |
v1-aqua-installer-${{runner.os}}-${{runner.arch}}-
- uses: aquaproj/[email protected]
with:
aqua_version: v2.21.0 # renovate: depName=aquaproj/aqua
working_directory: common/config/aquaproj-aqua
- run: aqua update-checksum -deep -prune
working-directory: common/config/aquaproj-aqua
- run: git diff --exit-code
id: diff
continue-on-error: true
- name: Commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add -A
git commit --author . -m "chore(aqua): update checksum"
git push origin
if: steps.diff.outcome == 'failure'
automerge:
runs-on: ubuntu-latest
needs: update-aqua-checksum
if: "github.event.pull_request.user.login == 'renovate[bot]' && contains(github.event.pull_request.body, ' **Automerge**: Enabled.')"
steps:
- uses: actions/checkout@v4
- name: Enable automerge
run: gh pr merge ${{ github.event.number }} --squash --auto --delete-branch
env:
GH_TOKEN: ${{ github.token }}