Skip to content

Commit

Permalink
Manually call deploy in sync action
Browse files Browse the repository at this point in the history
The deploy action is not triggered on push from the sync action.
This is a measure by GitHub to avoid recursive action calls.
The change here works around it by manually calling the local deploy action.
  • Loading branch information
shakuzen committed Sep 18, 2023
1 parent 5e45177 commit 76bc489
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
workflow_call:
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/sync-from-reddit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,18 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4

- name: Configure git user
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Download wiki from Reddit
run: ./download-wiki.sh

- name: Push changes (if any)
run: git push

# Pushes from GitHub Actions do not trigger further actions; manually call deploy
- name: Deploy site
uses: ./.github/workflows/deploy.yml

0 comments on commit 76bc489

Please sign in to comment.