forked from dracut-ng/dracut-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 853 Bytes
/
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
---
name: Release
on: # yamllint disable-line rule:truthy
schedule:
## Schedule the job quarterly to run on Feb-1, May-1, Aug-1, and Nov-1
- cron: '0 0 1 FEB,MAY,AUG,NOV *'
workflow_dispatch:
inputs:
tag:
description: "release version number (3 digits)"
required: true
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build
run: bash ${GITHUB_WORKSPACE}/tools/release.sh ${{ inputs.tag }}
- name: Release
if: ${{ env.new_version }}
uses: softprops/action-gh-release@v2.2.1
with:
tag_name: ${{ env.new_version }}
name: dracut-${{ env.new_version }}
body_path: ${{ github.workspace }}/release.md