diff --git a/.github/workflows/fork-sync.yml b/.github/workflows/fork-sync.yml index bf415d178..423ba72e2 100644 --- a/.github/workflows/fork-sync.yml +++ b/.github/workflows/fork-sync.yml @@ -12,22 +12,27 @@ jobs: steps: - name: Checkout main - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: main - name: Pull upstream changes id: sync - uses: aormsby/Fork-Sync-With-Upstream-action@v2.1 + uses: aormsby/Fork-Sync-With-Upstream-action@v3.4.1 with: - upstream_repository: allyourbot/hostedgpt - upstream_branch: main - target_branch: main - git_pull_args: --ff-only # optional arg use, defaults to simple 'pull' + upstream_sync_repo: allyourbot/hostedgpt + upstream_sync_branch: main + upstream_pull_args: --ff-only + target_sync_branch: main + test_mode: false - - name: Check for new commits - if: steps.sync.outputs.has_new_commits - run: echo "There were new commits." + - name: New commits found + if: steps.sync.outputs.has_new_commits == 'true' + run: echo "New commits were found to sync." - - name: Timestamp - run: date \ No newline at end of file + - 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 }} \ No newline at end of file