Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm207 committed Jan 26, 2024
1 parent 411343f commit 1d10b9f
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/update-weaviate-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,22 @@ jobs:
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});
const { repo, owner } = context.repo;
const result = await github.rest.pulls.create({
title: 'Update Weaviate Server Image',
owner,
repo,
head: '${{ github.ref_name }}',
base: 'main',
body: [
'This PR updates the Weaviate version in tests/docker-compose.yml',
'This PR is auto-generated by',
'[actions/github-script](https://github.com/actions/github-script).'
].join('\n')
});
github.rest.issues.addLabels({
owner,
repo,
issue_number: result.data.number,
labels: ['quality-improvement', 'automated pr']
});

0 comments on commit 1d10b9f

Please sign in to comment.