Skip to content

Commit

Permalink
Exit instead of return needed
Browse files Browse the repository at this point in the history
Because exiting the shell instead of a function
  • Loading branch information
jakob-fritz committed Jan 8, 2024
1 parent 5a5de4a commit 832e7e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gitlab_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ jobs:
if: github.event_name == 'pull_request_target'
run: |
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
if: >-
(github.event_name == 'push') ||
(github.event_name == 'schedule')
run: return 0
run: exit 0
- name: Fail for other triggers
if: >-
(github.event_name != 'push') &&
(github.event_name != 'schedule') &&
(github.event_name != 'pull_request_target')
run: return 1
run: exit 1

mirror_to_gitlab:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 832e7e5

Please sign in to comment.