fix: various bug fixes (HL-1001, HL-1004) (#2326) #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/release-please.yml | |
name: release-please | |
on: | |
push: | |
branches: | |
- main | |
# manual triggered | |
workflow_dispatch: | |
inputs: | |
label: | |
description: 'PR label, force update for release-please PRs. Do not use spaces!' | |
required: false | |
type: string | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install release-please client | |
run: npm i release-please -g | |
# extra label will be set on open release-please PR's to ensure PR re-generation (manifest -file merge issue) | |
# extra label includes the released component tag or manual triggered label name | |
- name: Create release pr | |
run: | | |
if [ -n "${{ github.event.release.tag_name }}" ]; then | |
LABEL="--label ${{ github.event.release.tag_name }}" | |
elif [ -n "${{ inputs.label }}" ]; then | |
LABEL="--label ${{ inputs.label }}" | |
fi | |
echo $LABEL | |
release-please release-pr --target-branch=main --token=${{ secrets.GITHUB_TOKEN }} --repo-url=$GITHUB_REPOSITORY $LABEL | |
# create release | |
# rerun release-pr after release creation to fix manifest -file merge issue | |
- name: Create github release | |
run: | | |
release-please github-release --target-branch=main --token=${{ secrets.GITHUB_TOKEN }} --repo-url=$GITHUB_REPOSITORY | |
release-please release-pr --target-branch=main --token=${{ secrets.GITHUB_TOKEN }} --repo-url=$GITHUB_REPOSITORY |