mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 05:17:11 -07:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
31 lines
757 B
YAML
31 lines
757 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
release:
|
|
name: "Create Release"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Is pre-release?
|
|
id: is_pre_release
|
|
run: |
|
|
version="${GITHUB_REF#refs/tags/}"
|
|
if [[ "${version}" =~ -.*$ ]]; then
|
|
echo ::set-output name=IS_PRERELEASE::true
|
|
else
|
|
echo ::set-output name=IS_PRERELEASE::false
|
|
fi
|
|
|
|
- name: Release
|
|
uses: docker://antonyurchenko/git-release:v5
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
DRAFT_RELEASE: "true"
|
|
PRE_RELEASE: ${{ steps.is_pre_release.outputs.IS_PRERELEASE }}
|
|
ALLOW_EMPTY_CHANGELOG: "false"
|