-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.23 KB
/
sync.yaml
File metadata and controls
41 lines (38 loc) · 1.23 KB
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
40
41
name: Repository synchronization
on:
pull_request:
types:
- closed
branches:
- master
workflow_dispatch:
jobs:
prepare:
if: |
github.event_name == 'workflow_dispatch' ||
(
github.event_name == 'pull_request' &&
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'release/')
)
runs-on: ubuntu-latest
outputs:
replacements: ${{ steps.getReplacementsStep.outputs.replacements }}
steps:
- uses: rees46/workflow/.github/actions/sync/read-replacements@master
id: getReplacementsStep
with:
appId: ${{ vars.PUBLIVERSIONER_ID }}
appSecret: ${{ secrets.PUBLIVERSIONER_SECRET }}
replacementsPath: github/repo-sync-replacements/android-sdk.yml
repoSync:
needs: prepare
uses: rees46/workflow/.github/workflows/reusable-repo-sync.yml@master
secrets:
appSecret: ${{ secrets.PERSONACLICK_COURIER_SECRET }}
with:
appId: ${{ vars.PERSONACLICK_COURIER_ID }}
replacements: ${{ needs.prepare.outputs.replacements }}
repositoryOwner: personaclick
targetRepository: personaclick/android-sdk
reviewerUsername: ${{ vars.REVIEWER_USERNAME }}