Skip to content

Commit 434de01

Browse files
[CI] Deploy CI
1 parent cd9144b commit 434de01

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: "[Push] Sync CI"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- '.github/**'
9+
- 'src/VERSION'
10+
- 'docs/**'
11+
workflow_dispatch:
12+
13+
env:
14+
workflow_file_name: deploy.yaml
15+
owner: spaceone-dev
16+
repo: actions
17+
ref: master
18+
19+
jobs:
20+
owner_check:
21+
if: github.repository_owner == 'spaceone-dev'
22+
runs-on: ubuntu-latest
23+
steps:
24+
- run: echo ${{ github.repository_owner }}
25+
master_push:
26+
if: github.event_name == 'push'
27+
runs-on: ubuntu-latest
28+
needs: owner_check
29+
steps:
30+
- name: git pull
31+
uses: convictional/trigger-workflow-and-wait@v1.3.0
32+
with:
33+
owner: ${{ env.owner }}
34+
repo: ${{ env.repo }}
35+
github_token: ${{ secrets.PAT_TOKEN }}
36+
workflow_file_name: ${{ env.workflow_file_name }}
37+
ref: ${{ env.ref }}
38+
wait_interval: 10
39+
inputs: '{"repository" : "${{ github.repository }}"}'
40+
trigger_workflow: true
41+
wait_workflow: true
42+
pull_workflows:
43+
if: github.event_name == 'workflow_dispatch'
44+
runs-on: ubuntu-latest
45+
needs: owner_check
46+
steps:
47+
- name: git pull
48+
uses: convictional/trigger-workflow-and-wait@v1.3.0
49+
with:
50+
owner: ${{ env.owner }}
51+
repo: ${{ env.repo }}
52+
github_token: ${{ secrets.PAT_TOKEN }}
53+
workflow_file_name: ${{ env.workflow_file_name }}
54+
ref: ${{ env.ref }}
55+
wait_interval: 10
56+
inputs: '{"repository" : "${{ github.repository }}" , "sync_only" : "true"}'
57+
trigger_workflow: true
58+
wait_workflow: true

0 commit comments

Comments
 (0)