Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable cron for SlackHQ Upstream Sync action #4

Closed
wants to merge 7 commits into from
31 changes: 31 additions & 0 deletions .github/workflows/slackhq_upstream_sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 'SlackHQ Upstream Sync'
on:
workflow_dispatch:
jobs:
sync:
name: Sync from upstream
runs-on: ubuntu-latest
strategy:
matrix:
branch:
- main

steps:
- name: Checkout target
uses: actions/checkout@v2
with:
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}

- name: Sync from upstream
id: sync
uses: aormsby/[email protected]
with:
target_sync_branch: ${{ matrix.branch }}
target_repo_token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
upstream_sync_branch: ${{ matrix.branch }}
upstream_sync_repo: vitessio/vitess
upstream_repo_access_token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}

- name: New commits found
if: steps.sync.outputs.has_new_commits == 'true'
run: echo "New commits were found to sync."