From 3acc0d1d2e581044a701e24bc2356b007c1f4cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Fri, 21 Jul 2023 11:18:06 +0200 Subject: [PATCH] ci: fix the gitlab trigger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There were two issues: - ${{ }} converts the expression to a string and strings are apparently always truthy https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idif - There was a typo in pr_data Therefore, the check didn't work properly. Signed-off-by: Ondřej Budai --- .github/workflows/trigger-gitlab.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger-gitlab.yml b/.github/workflows/trigger-gitlab.yml index f5fa620b7..d51b45889 100644 --- a/.github/workflows/trigger-gitlab.yml +++ b/.github/workflows/trigger-gitlab.yml @@ -93,7 +93,7 @@ jobs: fi - name: Trigger GitLab nightly pipeline against this PR - if: ${{ env.GITLAB_TOKEN }} && ${{ steps.pr_date.outputs.pr_branch }} + if: env.GITLAB_TOKEN && steps.pr_data.outputs.pr_branch run: | # osbuild-composer PROJECT_ID=34771166