-
Notifications
You must be signed in to change notification settings - Fork 73
39 lines (36 loc) · 1.22 KB
/
schedule_auto_merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Schedule Auto Merge
on:
workflow_dispatch:
schedule:
# At 15:30 UTC (8.30am PDT) on every day-of-week from Monday through Thursday.
- cron: "30 15 * * 1,2,3,4"
jobs:
call_update_translations:
uses: ./.github/workflows/update_translations.yml
with:
environment: Translation Sync
branch: staging
secrets:
PUSH_ACTOR_TOKEN: ${{ secrets.PUSH_ACTOR_TOKEN }}
PUSH_ACTOR: ${{ secrets.PUSH_ACTOR }}
TRANSLATIONIO_KEY_APP: ${{ secrets.TRANSLATIONIO_KEY_APP }}
TRANSLATIONIO_KEY_CARBON_DATA: ${{ secrets.TRANSLATIONIO_KEY_CARBON_DATA }}
call_wait_for_status:
needs: [call_update_translations]
uses: ./.github/workflows/wait_for_status_check.yml
with:
branch: staging
secrets:
# take the default token here as no pushes are needed
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
call_merge_staging:
needs: [call_wait_for_status]
if: needs.call_wait_for_status.outputs.status == 'success'
uses: ./.github/workflows/merge_staging.yml
with:
environment: Release-staging
staging_branch: staging
production_branch: main
secrets:
PUSH_ACTOR_TOKEN: ${{ secrets.PUSH_ACTOR_TOKEN }}
PUSH_ACTOR: ${{ secrets.PUSH_ACTOR }}