Daily Fork Auto-Update #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Upstream Changes | |
on: | |
workflow_dispatch: | |
schedule: | |
# actually, ~5 minutes is the highest | |
# effective frequency you will get | |
- cron: '* * * * *' | |
jobs: | |
sync_with_upstream: | |
runs-on: ubuntu-latest | |
name: Sync main with upstream latest | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
- name: Pull upstream changes | |
id: sync | |
uses: aormsby/[email protected] | |
with: | |
upstream_sync_repo: allyourbot/hostedgpt | |
upstream_sync_branch: main | |
upstream_pull_args: --ff-only | |
target_sync_branch: main | |
test_mode: false | |
- 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." |