From bebaf5b75b76aeba34a598960fd5766e45a65ff1 Mon Sep 17 00:00:00 2001 From: Nara Kasbergen Date: Tue, 2 Jul 2024 14:33:03 +0200 Subject: [PATCH] chore: fix multiline string variable in workflow [skip ci] --- .github/workflows/upgrade-dependencies.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/upgrade-dependencies.yaml b/.github/workflows/upgrade-dependencies.yaml index f3c4f73..d2ade1b 100644 --- a/.github/workflows/upgrade-dependencies.yaml +++ b/.github/workflows/upgrade-dependencies.yaml @@ -15,17 +15,14 @@ jobs: uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Install run: yarn install - - name: Get the output from yarn outdated and save it in an environment variable + - name: Get the output from yarn outdated and save it in a variable to reference in the PR body + id: yarn # See: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings run: | - { - echo 'YARN_OUTDATED<> "$GITHUB_ENV" - - name: Take the env var from the previous step and save it in an output variable to reference in the PR body - id: yarn - run: echo "outdated=$YARN_OUTDATED" >> $GITHUB_OUTPUT + YARN_OUTDATED=$(yarn outdated) + echo "outdated=<> $GITHUB_OUTPUT + echo "$YARN_OUTDATED" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT - name: Do the upgrade run: yarn upgrade - name: Create Pull Request