Skip to content

Commit

Permalink
updated generate.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Nov 24, 2024
1 parent fc5fd8c commit a8d4b23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
git config --global user.email github-actions[bot]@users.noreply.github.com
git config --global user.name "build bot"
git status
# set the package version to be the same as the schema version
git stash
# set the package version to be the same as the schema version
npm version $version
git stash pop
npm run generate
Expand All @@ -61,12 +61,12 @@ jobs:
with:
script: |
const version = process.env.VERSION;
const { data: pullRequest } = await github.pulls.create({
const { data: pullRequest } = await github.rest.pulls.create({
title: `chore: release v${version}`,
owner: context.repo.owner,
repo: context.repo.repo,
title: `chore: release v${version}`,
head: `v${version}`,
base: 'main',
head: `v${version}`,
body: 'This PR was automatically generated by the build bot'
})
console.log(`PR created: ${pullRequest.html_url}`)

0 comments on commit a8d4b23

Please sign in to comment.