From 9e0989fa4b32836f155f395a3fa42b4879ff62da Mon Sep 17 00:00:00 2001 From: Arun Date: Thu, 11 Jan 2024 22:55:38 -0800 Subject: [PATCH 1/2] ci: Use GITHUB_OUTPUT envvar instead of set-output command --- .github/workflows/writeup_readme.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/writeup_readme.yml b/.github/workflows/writeup_readme.yml index c9ac8ba..7acdf7d 100644 --- a/.github/workflows/writeup_readme.yml +++ b/.github/workflows/writeup_readme.yml @@ -61,7 +61,7 @@ jobs: mv .README.temp README.md OUTPUT=0 git diff --exit-code README.md || OUTPUT=$? - echo "::set-output name=OUTPUT::$OUTPUT" + echo "OUTPUT=$OUTPUT" >> $GITHUB_OUTPUT - name: Commit new README (if changed) if: steps.main.outputs.OUTPUT == 1 run: | From 155367bccb9456a82a44e26a4afafcfe0e367f4d Mon Sep 17 00:00:00 2001 From: Arun Date: Mon, 22 Jan 2024 17:34:43 -0800 Subject: [PATCH 2/2] Quote envvar to match documentation --- .github/workflows/writeup_readme.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/writeup_readme.yml b/.github/workflows/writeup_readme.yml index 7acdf7d..6a40dc6 100644 --- a/.github/workflows/writeup_readme.yml +++ b/.github/workflows/writeup_readme.yml @@ -61,7 +61,7 @@ jobs: mv .README.temp README.md OUTPUT=0 git diff --exit-code README.md || OUTPUT=$? - echo "OUTPUT=$OUTPUT" >> $GITHUB_OUTPUT + echo "OUTPUT=$OUTPUT" >> "$GITHUB_OUTPUT" - name: Commit new README (if changed) if: steps.main.outputs.OUTPUT == 1 run: |