Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanharikr committed Oct 20, 2023
1 parent 8bf7f9d commit bc0db86
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -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: GreenfieldStack #make sure this is the right stack value #TBD: use env
STACK: GreenfieldStack #make sure this is the right stack value

0 comments on commit bc0db86

Please sign in to comment.