Skip to content

Commit 390d01a

Browse files
authored
Add conditional step for testing in workflow
1 parent 5924993 commit 390d01a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/testing-vars.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ jobs:
8383
8484
echo "Results:\n$(echo $RESULT | jq .)"
8585
86+
- name: Conditional step - testing
87+
if: |
88+
github.repository == 'erigontech/devops-testing-workflows' &&
89+
(github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork)
90+
run: echo condition github.event_name="${github.event_name}" and github.event.pull_request.head.repo=${github.event.pull_request.head.repo}
91+
8692
- name: Debug output
8793
env:
8894
LOCAL_DEBUG1: ${{ github.ref_name == 'main' && format('{0}{1}{2}', 'Input variable skip_tests ', ' set to value ', inputs.skip_tests) || inputs.skip_tests }}

0 commit comments

Comments
 (0)