From 832e7e55e1b3bde455bbe03b088d3ca7d501024d Mon Sep 17 00:00:00 2001 From: Jakob Fritz Date: Mon, 8 Jan 2024 16:07:29 +0100 Subject: [PATCH] Exit instead of return needed Because exiting the shell instead of a function --- .github/workflows/gitlab_ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gitlab_ci.yml b/.github/workflows/gitlab_ci.yml index 40e399f5ce..714b3d2828 100644 --- a/.github/workflows/gitlab_ci.yml +++ b/.github/workflows/gitlab_ci.yml @@ -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