diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 843eb94..34d89e5 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -1,16 +1,20 @@ name: Sync with S3 on: - workflow_dispatch: #Can manually trigger + workflow_dispatch: pull_request_target: - types: [ closed ] #Runs on PR merge + types: [ closed ] + branches: [ main ] + push: branches: [ main ] jobs: sync: - #PR merged with main #Manually triggered workflow - if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' + if: | + github.event_name == 'workflow_dispatch' || + github.event.pull_request.merged == true || + github.event_name == 'push' uses: hellocoop/tools/.github/workflows/content-sync.yml@main # GitHub-Slack app sends a workflow status message with live updates to #content-updates channel with: - STACK: WwwCoopStack #make sure this is the right stack value #TBD: use env \ No newline at end of file + STACK: WwwDevStack #make sure this is the right stack value \ No newline at end of file