Skip to content
Snippets Groups Projects
Commit 832e7e55 authored by Jakob Fritz's avatar Jakob Fritz
Browse files

Exit instead of return needed

Because exiting the shell instead of a function
parent 5a5de4a7
No related branches found
No related tags found
No related merge requests found
Pipeline #171423 canceled
...@@ -22,18 +22,18 @@ jobs: ...@@ -22,18 +22,18 @@ jobs:
if: github.event_name == 'pull_request_target' if: github.event_name == 'pull_request_target'
run: | run: |
echo $steps.query_permission_triggering_actor.outputs.require-result echo $steps.query_permission_triggering_actor.outputs.require-result
return !steps.query_permission_triggering_actor.outputs.require-result exit !steps.query_permission_triggering_actor.outputs.require-result
- name: Pass if workflow from push or schedule - name: Pass if workflow from push or schedule
if: >- if: >-
(github.event_name == 'push') || (github.event_name == 'push') ||
(github.event_name == 'schedule') (github.event_name == 'schedule')
run: return 0 run: exit 0
- name: Fail for other triggers - name: Fail for other triggers
if: >- if: >-
(github.event_name != 'push') && (github.event_name != 'push') &&
(github.event_name != 'schedule') && (github.event_name != 'schedule') &&
(github.event_name != 'pull_request_target') (github.event_name != 'pull_request_target')
run: return 1 run: exit 1
mirror_to_gitlab: mirror_to_gitlab:
runs-on: ubuntu-latest runs-on: ubuntu-latest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment