name: Update Helm Chart on: workflow_dispatch: schedule: - cron: '00 12 * * *' jobs: psalm: name: update helm chart runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - name: update helm chart run: | 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)" DOCKER_TAG="${DOCKER_TAG%%latest*}" export DOCKER_TAG if [ -n "$DOCKER_TAG" ] && ! grep -q "$DOCKER_TAG" ./helm-chart/templates/nextcloud-aio-nextcloud-deployment.yaml; then sudo bash helm-chart/update-helm.sh "$DOCKER_TAG" fi - name: Create Pull Request uses: peter-evans/create-pull-request@v4 with: commit-message: Helm Chart updates signoff: true title: Helm Chart updates body: Automated Helm Chart updates for the yaml files. Should only be merged shortly before the next latest release. labels: dependencies milestone: next branch: aio-helm-update token: ${{ secrets.GITHUB_TOKEN }}