Skip to content

Commit

Permalink
Update test_trigger.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
asyatrhl authored Dec 15, 2023
1 parent c87753c commit 24e8b61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test_trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
- name: Check repository
run: |
REPO_OWNER=$(echo "${{ github.repository }}" | cut -d '/' -f 1)
echo "IS_REPOSITORY=${[REPO_OWNER == 'MaximIntegratedAI'}}" >> $GITHUB_ENV
echo "IS_REPOSITORY=${{ REPO_OWNER == 'MaximIntegratedAI' }}" >> $GITHUB_ENV
echo "IS_DEVELOP_BRANCH=${{ github.ref == 'refs/heads/develop' }}" >> $GITHUB_ENV
- name: Set up environment
if: env.IS_SPECIFIC_REPOSITORY == 'true' && env.IS_DEVELOP_BRANCH == 'true'
if: env.IS_REPOSITORY == 'true' && env.IS_DEVELOP_BRANCH == 'true'
run: |
PR_Branch=${{ github.event.pull_request.head.ref }}
Repository=${{ github.repository }}
Expand All @@ -27,10 +27,10 @@ jobs:
echo "PR_Sha: $PR_Sha"
- name: Dispatch event
if: env.IS_SPECIFIC_REPOSITORY == 'true' && env.IS_DEVELOP_BRANCH == 'true'
if: env.IS_REPOSITORY == 'true' && env.IS_DEVELOP_BRANCH == 'true'
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.REGRESSION_TEST }}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/MaximIntegratedAI/ai8x-regression/dispatches" \
-d '{"event_type": "repo-pull-request", "client_payload": {"PR_Branch": "${{ github.event.pull_request.head.ref }}", "Repository": "${{ github.repository }}","PR_Number": "${{ github.event.pull_request.number }}","PR_Sha": "${{ github.event.pull_request.head.sha }}" }'
-d '{"event_type": "repo-pull-request", "client_payload": {"PR_Branch": "${{ github.event.pull_request.head.ref }}", "Repository": "${{ github.repository }}","PR_Number": "${{ github.event.pull_request.number }}","PR_Sha": "${{ github.event.pull_request.head.sha }}" }}'

0 comments on commit 24e8b61

Please sign in to comment.