-
Notifications
You must be signed in to change notification settings - Fork 16
31 lines (29 loc) · 1.05 KB
/
synchro-mirror.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
name: Repo sync with Cloud π Native
on:
workflow_run:
workflows: ["ci-test", "ci-test-multi-jobs"]
types: [completed]
branches: ["develop-dso"]
workflow_dispatch:
jobs:
mirror:
name: Sync repo with Cloud π Native
runs-on: ubuntu-latest
steps:
- name: Checks-out repository
uses: actions/checkout@v3
- name: Send a sync request to DSO api
run: |
curl -X POST --fail -F token=${{ secrets.GITLAB_TRIGGER_TOKEN }} -F ref=${{vars.BRANCH_SYNC}} ${{vars.URL_MIRROR}}
curl -X POST \
--fail \
--form token=${{ secrets.GITLAB_TRIGDER_TOKEN_DSO }} \
--form ref=${{vars.BRANCH_SYNC_DSO}} \
--form "variables[GIT_BRANCH_DEPLOY]=${{vars.GIT_BRANCH_DEPLOY_DSO}}" \
${{vars.URL_MIRROR_DSO}}
# run: |
# sh ./path/to/script-mirror.sh \
# -a ${{ secrets.API_DOMAIN }} \
# -g ${{ secrets.GITLAB_TRIGGER_TOKEN }} \
# -k ${{ secrets.CONSUMER_KEY }} \
# -s ${{ secrets.CONSUMER_SECRET }}