From fa1dbcf33ec5cca471eb14b3696dfae64a89e25d Mon Sep 17 00:00:00 2001 From: jcpitre <106176106+jcpitre@users.noreply.github.com> Date: Tue, 19 Sep 2023 17:08:46 -0400 Subject: [PATCH] Repair acceptance test (#1584) * Corrected a problem with the acceptance test action. It seems the replacement for ::set-output (i.e. >> $GITHUB_OUTPUT) does not accept newlines in the data. * Removed some quotes and an extra parenthesis. --- .github/workflows/acceptance_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/acceptance_test.yml b/.github/workflows/acceptance_test.yml index 07f80073cd..ddef9141d1 100644 --- a/.github/workflows/acceptance_test.yml +++ b/.github/workflows/acceptance_test.yml @@ -36,7 +36,7 @@ jobs: # Obtain the last commit from the branch to merge (hence the HEAD^2). # In case of multi-line commit messages, remove any \n, because the GITHUB_OUTPUT method # of sending data to other jobs does not like them. - run: echo "pr_commit_message=\"$(git log --format=%B -n 1 HEAD^2 | tr '\n' ' '))\"" >> $GITHUB_OUTPUT + run: echo "pr_commit_message=$(git log --format=%B -n 1 HEAD^2 | tr '\n' ' ')" >> $GITHUB_OUTPUT # For **Pull Request** events this will resolve to something like "$( [ -z "commit message pr" ] && echo "" || echo "commit message pr" )" which then resolves to just "commit message pr" outputs: