Skip to content

Commit

Permalink
use env files to share state between jobs
Browse files Browse the repository at this point in the history
set-output is deprecated
  • Loading branch information
hsm207 committed Jan 27, 2024
1 parent 3933be7 commit ed5dad5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/update-weaviate-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit ed5dad5

Please sign in to comment.