chore: added HOME/bin path to make sure works on different machines #618
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
name: release-drafter | |
on: | |
push: | |
branches: [main, master] | |
workflow_dispatch: | |
inputs: | |
prerelease: | |
description: Is this a pre-release | |
required: true | |
default: true | |
type: boolean | |
publish: | |
description: Publish release | |
required: false | |
default: false | |
type: boolean | |
bump: | |
description: 'Bumping (#major, #minor or #patch)' | |
required: false | |
default: patch | |
type: choice | |
options: | |
- 'patch' | |
- 'minor' | |
- 'major' | |
jobs: | |
draft-a-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
with: | |
fetch-depth: '0' | |
- name: check next version | |
uses: anothrNick/github-tag-action@1.70.0 | |
id: tag | |
env: | |
DRY_RUN: true | |
WITH_V: true | |
DEFAULT_BUMP: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.bump || 'patch' }} | |
- name: release-draft | |
uses: release-drafter/release-drafter@v6.0.0 | |
if: "!contains(github.event.head_commit.message, 'skip')" | |
# contains(github.event.head_commit.message, 'release') | |
id: release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
publish: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.publish || 'false' }} | |
prerelease: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.prerelease || 'true' }} | |
tag: ${{ steps.tag.outputs.new_tag }} | |
- name: check-version | |
run: | | |
echo "release it: ${{ github.event.inputs.prerelease }}" | |
echo "out: ${{ steps.release.name }}" | |
echo "tag: ${{ steps.release.outputs.tag_name }}" |