From f88d5e7de5414c7a0f2f8b0d442d211c453762c5 Mon Sep 17 00:00:00 2001 From: Nara Kasbergen Date: Tue, 2 Jul 2024 15:02:28 +0200 Subject: [PATCH] chore: fix multiline string variable in workflow [skip ci] --- .github/workflows/upgrade-dependencies.yaml | 8 +++++--- outdated.txt | 19 ------------------- 2 files changed, 5 insertions(+), 22 deletions(-) delete mode 100644 outdated.txt diff --git a/.github/workflows/upgrade-dependencies.yaml b/.github/workflows/upgrade-dependencies.yaml index 5882d85..ec8ffae 100644 --- a/.github/workflows/upgrade-dependencies.yaml +++ b/.github/workflows/upgrade-dependencies.yaml @@ -15,18 +15,20 @@ jobs: uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Install run: yarn install - - name: Get the output from yarn outdated and save it in a variable to reference in the PR body + - name: Run yarn outdated + run: yarn outdated > outdated.txt + - name: Save the output from yarn outdated 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 # See also https://github.com/github/docs/issues/21529 for more info on why this is not quite so simple run: | - yarn outdated > outdated.txt YARN_OUTDATED=$(cat outdated.txt) EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) echo "outdated<<$EOF" >> "$GITHUB_OUTPUT" echo "$YARN_OUTDATED" >> "$GITHUB_OUTPUT" echo "$EOF" >> "$GITHUB_OUTPUT" - rm outdated.txt + - name: Remove temporary file + run: rm outdated.txt - name: Do the upgrade run: yarn upgrade - name: Create Pull Request diff --git a/outdated.txt b/outdated.txt deleted file mode 100644 index 40e95b1..0000000 --- a/outdated.txt +++ /dev/null @@ -1,19 +0,0 @@ -yarn outdated v1.22.22 -info Color legend : - "" : Major Update backward-incompatible updates - "" : Minor Update backward-compatible features - "" : Patch Update backward-compatible bug fixes -Package Current Wanted Latest Package Type URL -@cdktf/provider-github 13.2.0 13.2.0 14.2.2 dependencies https://github.com/cdktf/cdktf-provider-github#readme -@types/node 18.19.29 18.19.39 20.14.9 devDependencies https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node -@typescript-eslint/eslint-plugin 6.21.0 6.21.0 7.15.0 devDependencies https://typescript-eslint.io/packages/eslint-plugin -@typescript-eslint/parser 6.21.0 6.21.0 7.15.0 devDependencies https://typescript-eslint.io/packages/parser -cdktf 0.20.6 0.20.8 0.20.8 dependencies https://github.com/hashicorp/terraform-cdk -cdktf-cli 0.20.6 0.20.8 0.20.8 dependencies https://github.com/hashicorp/terraform-cdk#readme -change-case 4.1.2 4.1.2 5.4.4 dependencies https://github.com/blakeembrey/change-case/tree/master/packages/change-case#readme -eslint 8.57.0 8.57.0 9.6.0 devDependencies https://eslint.org -lint-staged 15.2.2 15.2.7 15.2.7 devDependencies https://github.com/okonet/lint-staged#readme -prettier 3.2.5 3.3.2 3.3.2 devDependencies https://prettier.io -tsx 4.7.2 4.16.0 4.16.0 devDependencies https://tsx.is -typescript 5.3.3 5.3.3 5.5.3 devDependencies https://www.typescriptlang.org/ -Done in 2.96s.