From ec09f5f10db3623a17712adcf8880dabafde34eb Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Fri, 28 Oct 2022 20:06:51 +0800 Subject: [PATCH] fix ::set-output --- .github/workflows/build.yml | 2 +- .github/workflows/mass-rebuild.yml | 2 +- .github/workflows/update.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d20aff7e58..e56a2dfa27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Parse Input id: parsing - run: echo "${{ inputs.packages }}" | sed 's/ /\n/g' | sed 's/$/\//g' | jq -R . | jq -s . | jq -c . | sed 's/^/::set-output name=pkgs::/' + run: echo "${{ inputs.packages }}" | sed 's/ /\n/g' | sed 's/$/\//g' | jq -R . | jq -s . | jq -c . | sed 's/^/pkgs=/' >> $GITHUB_OUTPUT build: needs: parse strategy: diff --git a/.github/workflows/mass-rebuild.yml b/.github/workflows/mass-rebuild.yml index eab5234f03..8c89b260c5 100644 --- a/.github/workflows/mass-rebuild.yml +++ b/.github/workflows/mass-rebuild.yml @@ -27,7 +27,7 @@ jobs: run: | build_matrix=$(find anda/ | grep -oP 'anda\/(.+)(\/|\$)' | sort -u | jq -R -s -c 'split("\n")[:-1]') # create build matrix with { changed_folders: [ "folder1", "folder2" ] } - echo "::set-output name=build_matrix::$build_matrix" + echo "build_matrix=$build_matrix" >> $GITHUB_OUTPUT #echo "::set-output name=build_matrix::$build_matrix" build: needs: manifest diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 0b06f7b7ed..bb3be988ca 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -35,7 +35,7 @@ jobs: git config user.email "<>" git commit -a -m "Automatic Update" git push -u origin main - echo "::set-output name=updated::1" + echo "updated=1" >> $GITHUB_OUTPUT fi - name: Autobuild