Only create release if changes have been made
This commit is contained in:
parent
5fe842f297
commit
ec55b8bb91
11
.github/workflows/create-release.yml
vendored
11
.github/workflows/create-release.yml
vendored
@ -14,15 +14,24 @@ jobs:
|
|||||||
release_name: ${{ steps.tag_version.outputs.new_tag }}
|
release_name: ${{ steps.tag_version.outputs.new_tag }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Changes Since Last Tag
|
||||||
|
id: changes
|
||||||
|
uses: jsmith/changes-since-last-tag@v0.4.1
|
||||||
|
|
||||||
- name: Bump version and push tag
|
- name: Bump version and push tag
|
||||||
|
if: steps.changes.outputs.any_changed == 'true'
|
||||||
id: tag_version
|
id: tag_version
|
||||||
uses: mathieudutour/github-tag-action@v6.2
|
uses: mathieudutour/github-tag-action@v6.2
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
default_bump: minor
|
# default_bump: minor
|
||||||
|
default_bump: false
|
||||||
|
|
||||||
- name: Create a GitHub release
|
- name: Create a GitHub release
|
||||||
|
if: steps.changes.outputs.any_changed == 'true'
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
tag: ${{ steps.tag_version.outputs.new_tag }}
|
tag: ${{ steps.tag_version.outputs.new_tag }}
|
||||||
|
Loading…
Reference in New Issue
Block a user