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 14, 2023
1 parent 15e4fd2 commit 00e023f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test_trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ jobs:
steps:
- name: Check if the repository is a fork
id: check-fork
run: echo "IsFork=$(echo "${{ github.repository }}" | grep '/' | grep -v "$(echo "${{ github.repository }}" | cut -d / -f 1)")"
run: |
IsSpecificRepository=${{ github.repository == 'asyatrhl/ai8x-regression' }}
IsDevelopBranch=${{ github.ref == 'refs/heads/develop' }}
echo "IsSpecificRepository=${IsSpecificRepository}"
echo "IsDevelopBranch=${IsDevelopBranch}"
shell: bash

- name: Set up environment
if: steps.check-fork.outputs.IsFork == ''
if: steps.check-repository-branch.outputs.IsSpecificRepository == 'true' && steps.check-repository-branch.outputs.IsDevelopBranch == 'true'
run: |
PR_Branch=${{ github.event.pull_request.head.ref }}
Repository=${{ github.repository }}
Expand Down

0 comments on commit 00e023f

Please sign in to comment.