ci: Update CI

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-10-03 11:43:22 +02:00
parent 8703597123
commit 7798202759
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC
16 changed files with 102 additions and 71 deletions

View file

@ -76,12 +76,23 @@ jobs:
helm repo index . --url https://bjw-s.github.io/helm-charts/
- name: Commit changes
shell: bash
working-directory: dest
run: |
git config user.name "bjw-s-bot[bot]"
git config user.email "bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>"
git add $(git ls-files -o --exclude-standard)
git add index.yaml
git commit -m "Updated from ref: $GITHUB_SHA"
git push
uses: stefanzweifel/git-auto-commit-action@v4
id: auto-commit
with:
repository: dest
branch: gh-pages
commit_user_name: "bjw-s-bot[bot]"
commit_user_email: 87358111+bjw-s-bot[bot]@users.noreply.github.com
commit_author: bjw-s-bot[bot] <87358111+bjw-s-bot[bot]@users.noreply.github.com>
file_pattern: 'index.yaml **/*.tgz'
disable_globbing: true
- name: Wait for deploy
uses: jchen1/wait-for-green@v1.0.7
if: ${{ steps.auto-commit.outputs.changes_detected }}
id: wait-for-deploy
with:
token: ${{ steps.get-app-token.outputs.token }}
commit: ${{ steps.auto-commit.outputs.commit_hash }}
# Ignore the job we're running on lest we create an infinite loop
ignored_checks: 'wait-for-deploy'