-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (31 loc) · 960 Bytes
/
Copy pathbump-version.yaml
File metadata and controls
33 lines (31 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Bump Version
on:
push:
branches:
- master
permissions:
contents: write
jobs:
test:
name: Bump Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: PSanetra/git-semver-actions/next@v1
id: next_version
- uses: PSanetra/git-semver-actions/latest@v1
id: latest_version
- uses: PSanetra/git-semver-actions/markdown-log@v1
id: markdown_log
- name: Create Release
id: create_release
uses: actions/create-release@v1
if: ${{ steps.next_version.outputs.version != steps.latest_version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "v${{ steps.next_version.outputs.version }}"
body: "${{ steps.markdown_log.outputs.changelog }}"
release_name: Release ${{ steps.next_version.outputs.version }}
draft: false
prerelease: false