Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
hiepvuhoang committed Dec 30, 2022
1 parent f5c078f commit abeb9c6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/auto-sync-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ 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
- name: Checkout main
uses: actions/checkout@v3

- name: Scan repository for production
uses: katalon-studio-samples/testops-sync-script-repo-action@main
with:
testops-base-url: https://testops.katalon.io
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
token: ${{ secrets.TOKEN }}
34 changes: 17 additions & 17 deletions .github/workflows/auto-sync-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ 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"}'
- name: Checkout main
uses: actions/checkout@v3

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"}'
- uses: actions/checkout@v3
- name: Scan repository for QA
uses: katalon-studio-samples/testops-sync-script-repo-action@main
with:
testops-base-url: https://testops.qa.katalon.com
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
token: ${{ secrets.TOKEN }}

- name: Scan repository for staging
uses: katalon-studio-samples/testops-sync-script-repo-action@main
with:
testops-base-url: https://testops.staging.katalon.com
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
token: ${{ secrets.TOKEN }}

0 comments on commit abeb9c6

Please sign in to comment.