From ed5dad5e3977b3604fe02ab4d5b79775b160fed6 Mon Sep 17 00:00:00 2001 From: hsm207 Date: Sat, 27 Jan 2024 00:14:08 +0000 Subject: [PATCH] use env files to share state between jobs set-output is deprecated --- .github/workflows/update-weaviate-server.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-weaviate-server.yml b/.github/workflows/update-weaviate-server.yml index ecbaaeb..88b8303 100644 --- a/.github/workflows/update-weaviate-server.yml +++ b/.github/workflows/update-weaviate-server.yml @@ -33,14 +33,15 @@ jobs: git config --global user.name '${{ github.actor }}' git config --global user.email '${{ github.actor }}@users.noreply.github.com' git add tests/docker-compose.yml - git diff-index --quiet HEAD && echo "::set-output name=changed::false" || ( - echo "::set-output name=changed::true" + git diff-index --quiet HEAD && echo "CHANGED=false" >> $GITHUB_ENV || ( + echo "CHANGED=true" >> $GITHUB_ENV git checkout -b ${{ env.SOURCE_BRANCH_NAME }} && git commit -m "Update Weaviate version in tests/docker-compose.yml" && git push --set-upstream origin ${{ env.SOURCE_BRANCH_NAME }} ) + - name: Create Pull Request - if: steps.commit.outputs.changed == 'true' + if: ${{ env.CHANGED == 'true' }} uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }}