Skip to content

Commit c65ea58

Browse files
authored
Merge pull request #7 from lystopad/main
Add conditional step for testing in workflow
2 parents 3282c49 + 390d01a commit c65ea58

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
@@ -84,6 +84,12 @@ jobs:
8484
8585
echo "Results:\n$(echo $RESULT | jq .)"
8686
87+
- name: Conditional step - testing
88+
if: |
89+
github.repository == 'erigontech/devops-testing-workflows' &&
90+
(github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork)
91+
run: echo condition github.event_name="${github.event_name}" and github.event.pull_request.head.repo=${github.event.pull_request.head.repo}
92+
8793
- name: Debug output
8894
env:
8995
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)