Skip to content

Commit

Permalink
Create repository dispatch from update-assets
Browse files Browse the repository at this point in the history
  • Loading branch information
JuhoErvasti committed May 16, 2024
1 parent 787618a commit 970ca12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/render-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- main
paths:
- src/G*/**
repository-dispatch:
types: [update-assets]

jobs:
check-changes:
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/update-assets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 970ca12

Please sign in to comment.