Skip to content

Commit

Permalink
Create dispatch_sync_ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
G.J.LEE committed Aug 1, 2023
1 parent 1c2f686 commit c616f6c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/dispatch_sync_ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "[Dispatch] Sync CI"

on:
workflow_dispatch:

env:
workflow_file_name: deploy.yaml
owner: GJ-playgroud
repo: actions
ref: master

jobs:
owner_check:
if: github.repository_owner == 'GJ-playgroud'
runs-on: ubuntu-latest
steps:
- run: echo ${{ github.repository_owner }}
pull_workflows:
runs-on: ubuntu-latest
needs: owner_check
steps:
- name: pull workflows
uses: convictional/trigger-workflow-and-wait@v1.6.1
with:
owner: ${{ env.owner }}
repo: ${{ env.repo }}
github_token: ${{ secrets.PAT_TOKEN }}
workflow_file_name: ${{ env.workflow_file_name }}
ref: ${{ env.ref }}
wait_interval: 10
client_payload: '{"dest" : "${{ github.event.repository.name }}" , "sync_only" : "true"}'
trigger_workflow: true
wait_workflow: false

0 comments on commit c616f6c

Please sign in to comment.