Skip to content

Commit

Permalink
refactor source branch name for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm207 committed Jan 26, 2024
1 parent cecf4c7 commit 345a45e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update-weaviate-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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',
Expand Down

0 comments on commit 345a45e

Please sign in to comment.