Skip to content

Commit

Permalink
separate env
Browse files Browse the repository at this point in the history
  • Loading branch information
hiepvuhoang committed Dec 30, 2022
1 parent 804b140 commit f5c078f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/auto-sync-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Trigger auto sync
on:
workflow_dispatch:
push:
branch:
- master

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"}'
- uses: actions/checkout@v3
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
workflow_dispatch:
push:
branch:
- master
- qa

jobs:
Expand All @@ -27,12 +26,4 @@ jobs:
-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 f5c078f

Please sign in to comment.