-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.1 KB
/
release.yml
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
34
35
36
37
38
# SPDX-FileCopyrightText: 2024 Weston Schmidt <[email protected]>
# SPDX-License-Identifier: Apache-2.0
---
name: Auto Releaser
on:
schedule:
- cron: '0 10 * * *'
workflow_dispatch:
jobs:
release:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Get Next Version
id: semver
uses: ietf-tools/semver-action@2415a9e79db34eb828a8dc1d20d4890725737227 # v1.8.0
with:
token: ${{ github.token }}
branch: main
patchList: fix, bugfix, perf, refactor, test, tests, chore
noVersionBumpBehavior: silent
noNewCommitBehavior: silent
- name: Create Release
if: |
steps.semver.outputs.next != ''
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
with:
name: ${{ steps.semver.outputs.next }}
tag: ${{ steps.semver.outputs.next }}
commit: ${{ github.sha }}
token: ${{ github.token }}