-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (48 loc) · 1.73 KB
/
check-new-release.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
name: Check new releases
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # every day
jobs:
check-and-update-charts:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install updatecli
uses: updatecli/updatecli-action@v2
- name: Update dependencies
run: |
updatecli apply --config .github/updatecli/helm-update.yaml --commit=false
- name: Check if release changed
id: check_changes
run: |
git fetch origin
if [ -n "$(git diff HEAD^ HEAD)" ]; then
echo "release_changed=true" >> $GITHUB_OUTPUT
fi
- name: Update README.md Helm Chart
if: steps.check_changes.outputs.release_changed == 'true'
uses: losisin/helm-docs-github-action@v1
with:
chart-search-root: charts
- name: Get date
id: date
run: |
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Create PR with changes
if: steps.check_changes.outputs.release_changed == 'true'
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.PAT_GITHUB }}
commit-message: "chore: bump version charts (${{ steps.date.outputs.date }})"
signoff: false
branch: chore/bump-version-charts-${{ steps.date.outputs.date }}
delete-branch: true
title: '[charts] bump version (${{ steps.date.outputs.date }})'
body: |
This PR updates the appVersion of the charts to the latest release. We're working on improving the automation to make this process smoother.
labels: |
auto-pr-bump-version