Fixes for the CI (#242)

This commit is contained in:
Félix Saparelli 2022-07-24 20:33:56 +12:00 committed by GitHub
parent 450e29d9cc
commit 51b300d29e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 375 additions and 276 deletions

View file

@ -61,13 +61,8 @@ jobs:
fence=$'```\n'
ecnef=$'\n```'
title="release: v${{ inputs.version }}"
body_intro="This is a release PR for version **${{ inputs.version }}**."
body_merge="**Use squash merge.**${nl}Upon merging, this will automatically build the CLI and create a GitHub release. You still need to manually publish the cargo crate."
body_pub="${fence}$ git switch main${nl}$ git pull${nl}$ git checkout v${{ inputs.version }}${nl}$ cargo publish${ecnef}"
body_notes="---${br}_Edit release notes into the section below:_${br}<!-- do not change or remove this heading -->${nl}### Release notes"
body="${body_intro}${br}${body_merge}${br}${body_pub}${br}${body_notes}${br}"
title='release: v${{ inputs.version }}'
body=$(sed 's/%version%/${{ inputs.version }}/g' ci-scripts/release-pr.txt)
gh pr create --title "$title" --body "$body" --base main --head "${{ env.branch_name }}" --label "release"
env: