2023-01-06 00:46:41 +08:00
name : Update Helm Chart
on :
workflow_dispatch :
2022-12-22 20:29:31 +08:00
schedule :
- cron : '00 12 * * *'
2023-01-06 00:46:41 +08:00
jobs :
psalm :
name : update helm chart
runs-on : ubuntu-latest
steps :
- name : Checkout code
uses : actions/checkout@v3
- name : update helm chart
run : |
2022-12-22 20:29:31 +08:00
DOCKER_TAG="$(curl -L -s 'https://registry.hub.docker.com/v2/repositories/nextcloud/all-in-one/tags?page_size=1024' | jq '."results"[]["name"]' | sed 's|"||g' | grep '^20' | sort -r | head -1)"
2023-02-17 00:38:45 +08:00
DOCKER_TAG="${DOCKER_TAG%%-latest*}"
2022-12-22 20:29:31 +08:00
export DOCKER_TAG
2023-03-30 18:02:50 +08:00
if [ -n "$DOCKER_TAG" ] && ! grep -q "$DOCKER_TAG" ./nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-deployment.yaml; then
sudo bash nextcloud-aio-helm-chart/update-helm.sh "$DOCKER_TAG"
2022-12-22 20:29:31 +08:00
fi
2023-01-06 00:46:41 +08:00
- name : Create Pull Request
2023-04-05 21:00:25 +08:00
uses : peter-evans/create-pull-request@v5
2023-01-06 00:46:41 +08:00
with :
commit-message : Helm Chart updates
signoff : true
title : Helm Chart updates
2023-01-13 06:10:19 +08:00
body : Automated Helm Chart updates for the yaml files. It can be merged if it looks good at any time which will automatically trigger a new release of the helm chart.
2023-04-27 21:16:58 +08:00
labels : dependencies, 3. to review
2023-01-06 00:46:41 +08:00
milestone : next
branch : aio-helm-update
2022-12-22 20:29:31 +08:00
token : ${{ secrets.GITHUB_TOKEN }}