Skip to content

Sync Fork

Sync Fork #1376

Workflow file for this run

name: Sync Fork
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
sync_fork:
runs-on: ubuntu-latest
steps:
- name: Checkout target repo
uses: actions/checkout@v4
- name: Sync upstream changes
id: sync
uses: aormsby/[email protected]
with:
target_sync_branch: master
# REQUIRED 'target_repo_token' exactly like this!
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
upstream_sync_branch: master
upstream_sync_repo: zacharee/WiFiList
- name: New commits found
if: steps.sync.outputs.has_new_commits == 'true'
run: echo "New commits were found to sync."
- name: No new commits
if: steps.sync.outputs.has_new_commits == 'false'
run: echo "There were no new commits."
- name: Show value of 'has_new_commits'
run: echo ${{ steps.sync.outputs.has_new_commits }}