Skip to content

Daily Fork Auto-Update #8

Daily Fork Auto-Update

Daily Fork Auto-Update #8

Workflow file for this run

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."