Skip to content

Commit 1edbc53

Browse files
feat(workflows): update
1 parent f56ff18 commit 1edbc53

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/sync.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Repository synchronization
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
branches:
8+
- master
9+
workflow_dispatch:
10+
11+
jobs:
12+
prepare:
13+
if: |
14+
github.event_name == 'workflow_dispatch' ||
15+
(
16+
github.event_name == 'pull_request' &&
17+
github.event.pull_request.merged == true &&
18+
startsWith(github.event.pull_request.head.ref, 'release/')
19+
)
20+
runs-on: ubuntu-latest
21+
outputs:
22+
replacements: ${{ steps.getReplacementsStep.outputs.replacements }}
23+
steps:
24+
- uses: rees46/workflow/.github/actions/sync/read-replacements@master
25+
id: getReplacementsStep
26+
with:
27+
appId: ${{ vars.PUBLIVERSIONER_ID }}
28+
appSecret: ${{ secrets.PUBLIVERSIONER_SECRET }}
29+
replacementsPath: github/repo-sync-replacements/android-sdk.yml
30+
31+
repoSync:
32+
needs: prepare
33+
uses: rees46/workflow/.github/workflows/reusable-repo-sync.yml@master
34+
secrets:
35+
appSecret: ${{ secrets.PERSONACLICK_COURIER_SECRET }}
36+
with:
37+
appId: ${{ vars.PERSONACLICK_COURIER_ID }}
38+
replacements: ${{ needs.prepare.outputs.replacements }}
39+
repositoryOwner: personaclick
40+
targetRepository: personaclick/android-sdk
41+
reviewerUsername: iwwwanow

0 commit comments

Comments
 (0)