From 394a5d99505ba79aa9e8b6419d8971d6a32ee2a9 Mon Sep 17 00:00:00 2001 From: DriesSchaumont <5946712+DriesSchaumont@users.noreply.github.com> Date: Tue, 30 Jan 2024 10:12:09 +0100 Subject: [PATCH] Make it work for PRs [ci force] --- .github/workflows/test.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cf7fcfa3..0c98c3d8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -34,7 +34,11 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 0 + + - name: Get head git commit message + id: get_head_commit_message + run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" - uses: viash-io/viash-actions/setup@v5 @@ -69,7 +73,7 @@ jobs: "config": .info.config, "dir": .info.config | capture("^(?.*\/)").dir } - ]' ${{ contains(github.event.head_commit.message, 'ci force') && steps.ns_list.outputs.output_file || steps.ns_list_filtered.outputs.output_file }} )" >> $GITHUB_OUTPUT + ]' ${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, 'ci force') && steps.ns_list.outputs.output_file || steps.ns_list_filtered.outputs.output_file }} )" >> $GITHUB_OUTPUT # phase 2 viash_test: