Skip to content

Commit

Permalink
build: update PR auto create
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Nov 23, 2023
1 parent d91ef24 commit 66cd90f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pr-auto-upsert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ jobs:
# replace newlines with spaces
sed -i ':a;N;$!ba;s/\n/ /g' /tmp/summary.txt
# replace " with \"
sed -i 's/"/\\"/g' /tmp/summary.txt
echo "summary=$(cat /tmp/summary.txt)" >> $GITHUB_OUTPUT
# create a PR from dev to main, with title in form: Release <semver>
Expand All @@ -79,7 +82,8 @@ jobs:
})
const nextRelease = lastRelease.replace(/(\d+)$/, (match, p1) => Number(p1) + 1)
const prTitle = `Release ${nextRelease}`
const body = `> *This PR is automatically created by actions defined in this repository. To see the run log of this action, please click [here](/${{ github.repository }}/actions/runs/${{ github.run_id }})*\n\n---\n\n## Summary\n\n${{ steps.get_summary.outputs.summary || '(no summary)' }}`
let body = `> *This PR is automatically created by actions defined in this repository. To see the run log of this action, please click [here](/${{ github.repository }}/actions/runs/${{ github.run_id }})*\n\n---\n\n## Summary\n\n`
body += "${{ steps.get_summary.outputs.summary || '(no summary)' }}"
const existedPR = await github.rest.pulls.list({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 66cd90f

Please sign in to comment.