This repository has been archived by the owner on Jan 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 1.98 KB
/
bump-backup-maker.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
58
name: Bump backup-maker
on:
workflow_dispatch:
inputs:
revision:
description: Commit, branch or tag
required: true
default: main
dependencyName:
description: Full address of a dependency
required: true
default: github.com/riotkit-org/br-backup-maker
targetBranch:
description: Target branch name, where to save the change
required: true
default: main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: "${{ github.event.inputs.targetBranch }}"
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Bump dependency
run: "go get ${{ github.event.inputs.dependencyName }}@${{ github.event.inputs.revision }}"
- name: Commit dependencies list
run: "git config --global user.email '[email protected]'; git config --global user.name 'CI/CD robot'; git add go.mod go.sum; git commit -m 'chore: Bump ${{ github.event.inputs.dependencyName }}' || true"
- name: Push
run: "git push"
- name: Invoke build pipeline for main branch
uses: convictional/[email protected]
with:
owner: riotkit-org
repo: backup-maker-operator
github_token: ${{ secrets.GH_RW_TOKEN }}
github_user: blackandred
workflow_file_name: test-and-release.yaml
ref: main
wait_interval: 5
client_payload: '{}'
propagate_failure: true
trigger_workflow: true
wait_workflow: true