-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c05239
commit 7dff274
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: WwwCoopStack #make sure this is the right stack value #TBD: use env | ||
STACK: WwwDevStack #make sure this is the right stack value |