-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (52 loc) · 1.57 KB
/
draft-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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Create Milestone and Draft Release
on:
workflow_call:
# inputs:
secrets:
RSG_BOT_TOKEN:
required: true
push:
branches:
- master
paths-ignore:
- '**/*.md'
schedule:
- cron: '0 0 * * 4'
jobs:
create_milestone_and_draft_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.5.3
with:
fetch-depth: 0
- name: Fetch all history for all tags and branches
run: git fetch --prune
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.10.2
with:
versionSpec: '5.x'
- name: Use GitVersion
id: gitversion
uses: gittools/actions/gitversion/execute@v0.10.2
- name: Create Milestone
uses: WyriHaximus/github-action-create-milestone@v1
with:
title: v${{ steps.gitversion.outputs.majorMinorPatch }}
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
continue-on-error: true
- name: sync milestones
uses: RocketSurgeonsGuild/actions/sync-milestone@v0.3.3
with:
default-label: ':sparkles: mysterious'
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
generateReleaseNotes: true
name: 'v${{ steps.gitversion.outputs.majorMinorPatch }}'
tag: 'v${{ steps.gitversion.outputs.majorMinorPatch }}'
token: ${{ secrets.RSG_BOT_TOKEN }}
draft: true
commit: ${{ github.base_ref }}