Skip to content

Commit

Permalink
add auto sync action
Browse files Browse the repository at this point in the history
  • Loading branch information
hiepvuhoang committed Dec 30, 2022
1 parent 06d3e8c commit b3c4b5a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/auto-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Trigger auto sync
on:
workflow_dispatch:
push:
branch:
- master
- TES-1829

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Trigger TestOps auto sync
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.ACTIONS_KEY }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/katalon-studio-samples/testops-sync-script-repo-action/actions/workflows/staging.yml/dispatches \
-d '{"ref":"main"}'
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.ACTIONS_KEY }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/katalon-studio-samples/testops-sync-script-repo-action/actions/workflows/qa.yml/dispatches \
-d '{"ref":"main"}'
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.ACTIONS_KEY }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/katalon-studio-samples/testops-sync-script-repo-action/actions/workflows/production.yml/dispatches \
-d '{"ref":"main"}'
- uses: actions/checkout@v3

0 comments on commit b3c4b5a

Please sign in to comment.