forked from mastercomfig/mastercomfig
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.25 KB
/
release.yml
File metadata and controls
44 lines (42 loc) · 1.25 KB
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
39
40
41
42
43
44
name: Start Release
on:
workflow_dispatch:
inputs:
version:
description: "Version"
required: true
highlights:
description: "Highlights"
required: true
hours:
description: "Hours taken"
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_TOKEN }}
fetch-depth: 0
- name: Update release info
run: |
{
echo "${{ github.event.inputs.version }}"
echo "${{ github.event.inputs.highlights }}"
echo "${{ github.event.inputs.hours }}"
echo ""
} > dev/info.txt
- name: Commit release info
run: |
git config user.email "support@mastercomfig.com"
git config user.name "mastercoms"
git commit -am "release ${{ github.event.inputs.version }}" || true
- name: Switch to release
run: git checkout release
- name: Merge ref into release
run: git merge ${GITHUB_REF##*/}
- name: Tag release
run: git tag ${{ github.event.inputs.version }}
- name: Push release
run: git push --atomic origin release ${{ github.event.inputs.version }}