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 }}