diff --git a/.github/workflows/update-weaviate-server.yml b/.github/workflows/update-weaviate-server.yml index 048e1c4..2d38cae 100644 --- a/.github/workflows/update-weaviate-server.yml +++ b/.github/workflows/update-weaviate-server.yml @@ -10,6 +10,8 @@ on: workflow_dispatch: schedule: - cron: '0 0 * * 1' # Every Monday at 00:00 UTC +env: + SOURCE_BRANCH_NAME: update-weaviate-image jobs: update-version: @@ -31,7 +33,7 @@ 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 || (git checkout -b update-weaviate-image && git commit -m "Update Weaviate version in tests/docker-compose.yml" && git push --set-upstream origin update-weaviate-image) + git diff-index --quiet HEAD || (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 uses: actions/github-script@v7 @@ -43,7 +45,7 @@ jobs: title: 'Update Weaviate Server Image', owner, repo, - head: 'update-weaviate-image', + head: '${{ env.SOURCE_BRANCH_NAME }}', base: 'main', body: [ 'This PR updates the Weaviate version in tests/docker-compose.yml',