From 970ca1285112158119cffc7d88d92dcfe2f6d179 Mon Sep 17 00:00:00 2001 From: Juho Ervasti Date: Thu, 16 May 2024 14:42:01 +0300 Subject: [PATCH] Create repository dispatch from update-assets --- .github/workflows/render-deploy.yaml | 2 ++ .github/workflows/update-assets.yaml | 20 +++++++++----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/render-deploy.yaml b/.github/workflows/render-deploy.yaml index 5b183ab..ec71846 100644 --- a/.github/workflows/render-deploy.yaml +++ b/.github/workflows/render-deploy.yaml @@ -5,6 +5,8 @@ on: - main paths: - src/G*/** + repository-dispatch: + types: [update-assets] jobs: check-changes: diff --git a/.github/workflows/update-assets.yaml b/.github/workflows/update-assets.yaml index c969072..5a18b38 100644 --- a/.github/workflows/update-assets.yaml +++ b/.github/workflows/update-assets.yaml @@ -22,15 +22,13 @@ jobs: run: ./update_assets.sh - name: Add, Commit & Push - run: | - set -e - - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - - git add . - - git commit -m "Automatic: Update assets from ${GITHUB_SHA}" - - git push origin main + uses: EndBug/add-and-commit@v7 + with: + add: "src/G*" + token: ${{ secrets.GITHUB_TOKEN }} + message: "Automatic: Update assets from ${{ github.sha }}" + - name: Dispatch render-deploy + uses: peter-evans/repository-dispatch@v1 + with: + event-type: update-assets