Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to update weaviate server version #35

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/update-weaviate-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Update Weaviate Version

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1' # Every Monday at 00:00 UTC

jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up required tools
run: |
sudo apt-get update
sudo apt-get install -y jq

- name: Update Weaviate Version
run: make update-weaviate-version

- name: Commit and push if changed
run: |
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 commit -m "Update Weaviate version in tests/docker-compose.yml" && git push)

- name: Create Pull Request
uses: actions/github-script@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
script: |
const title = "Update Weaviate Version";
const body = "This PR updates the Weaviate version in tests/docker-compose.yml";
const branch = "main"; # Change to your target branch
const head = process.env.GITHUB_REF.split('/').pop();
const base = branch;
github.pulls.create({owner, repo, title, body, head, base});
Loading