-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (55 loc) · 1.99 KB
/
Copy pathupgrade-fluxcd-pkg.yaml
File metadata and controls
58 lines (55 loc) · 1.99 KB
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
58
name: upgrade-fluxcd-pkg
on:
workflow_call:
secrets:
github-token:
description: 'GitHub token with contents and pull-requests write permissions'
required: true
jobs:
upgrade-fluxcd-pkg:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ secrets.github-token }}
fetch-depth: 0
persist-credentials: false
- name: Checkout fluxcd/pkg
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: fluxcd/pkg
ref: main
path: fluxcd-pkg
- name: Setup Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
cache: false
- name: Build flux-tools
run: |
make flux-tools
mkdir -p ../bin
cp bin/flux-tools ../bin/
working-directory: fluxcd-pkg
- name: Remove fluxcd/pkg clone
run: rm -rf fluxcd-pkg
- name: Run bump
run: ./bin/flux-tools bump
- name: Tidy
id: tidy
run: make tidy
continue-on-error: true
- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ secrets.github-token }}
commit-message: Update fluxcd/pkg dependencies
committer: GitHub <noreply@github.com>
signoff: true
branch: update-pkg-deps/${{ github.ref_name }}
title: Update fluxcd/pkg dependencies
body: |
Automated `fluxcd/pkg` dependency update for `${{ github.ref_name }}`.
${{ steps.tidy.outcome == 'failure' && '⚠️ `make tidy` failed, possibly due to breaking changes in the Go modules deps.' || '' }}
Generated by: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}