forked from vmware-tanzu/cartographer-conventions
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 909 Bytes
/
update.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
name: Update
on:
workflow_dispatch:
pull_request:
schedule:
- cron: "* 12 * * *"
permissions:
contents: "write"
pull-requests: "write"
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install UpdateCLI
uses: updatecli/updatecli-action@v2
- name: Run UpdateCLI
id: updatecli
run: |
output=$(updatecli apply --push=false)
echo $output
output="${output//$'\n'/\\n}"
echo "stdout=$output" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
if: github.event_name != 'pull_request'
with:
token: ${{ secrets.UPDATECLI_GITHUB_TOKEN }}
commit-message: 'chore: bumped base image digest'
signoff: false
title: 'chore: bumped base image digest'
body: ${{ steps.updatecli.outputs.stdout }}