-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
59 lines (52 loc) · 1.68 KB
/
action.yaml
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
name: Changelog
inputs:
stack:
type: choice
description: 'The stack to run the job on (go, npm)'
options:
- go
- npm
next-version:
required: true
token:
required: true
runs:
using: "composite"
steps:
- name: Setup go
if: ${{ inputs.stack == 'go' }}
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Install dependencies
if: ${{ inputs.stack == 'go' }}
shell: bash
run: go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest
- name: Building new version
if: ${{ inputs.stack == 'go' }}
shell: bash
run: NEXT_VERSION=${{inputs.next-version}} make changelog
- name: Retrieve version
if: ${{ inputs.stack == 'go' }}
shell: bash
id: vars
run: echo "version=$(cat .version)" >> $GITHUB_OUTPUT
- name: Create Pull Request
if: ${{ inputs.stack == 'go' }}
uses: devops-infra/action-pull-request@v0.5.5
with:
github_token: ${{ inputs.token }}
source_branch: changelog_${{ steps.vars.outputs.version }}
target_branch: main
title: |
:memo: New release pending ${{ steps.vars.outputs.version }}
body: |
# :cherry_blossom: Version `${{ steps.vars.outputs.version }}` ready to be release
Please review, approve and merge the release.
Merging this PR will not cause any deployment.
**If you want to deploy a release, please follow the documented deployment process.**
> [!NOTE]
> This is an **automated** pull request.
> **CHANGELOG.md** has been updated with the new release notes.
label: Release
draft: false