-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.14 KB
/
update-helm-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
name: Force a helm update
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
plantrigger:
runs-on: ubuntu-latest
name: Force helm update
steps:
- name: Checkout
uses: actions/checkout@v2
- name: update helm
uses: cresta/[email protected]
- name: check for changes
id: changes
run: |
if [[ `git status --porcelain` ]]; then
echo '::set-output name=CHANGES::true'
else
echo '::set-output name=CHANGES::false'
fi
- name: Create PR and auto merge it
run: |
git config user.email "[email protected]"
git config user.name "Helm Autoupdate"
git add .
git commit -am "auto update helm versions"
git push --force origin HEAD:helm-autoupdate
gh pr create --head helm-autoupdate --title "auto update helm versions" --body "Updating helm to latest versions"
gh pr merge helm-autoupdate --auto --squash --delete-branch
if: steps.changes.outputs.CHANGES == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}