forked from kubernetes-sigs/gcp-filestore-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.08 KB
/
cut_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
name: Cut Release
on:
pull_request:
types:
- closed
branches:
- 'release-1.3'
jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: '0'
- name: Bump version and push tag
id: bump_version_and_push_tag
uses: anothrNick/[email protected] # Don't use @master or @v1 unless you're happy to test the latest version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token
WITH_V: true
DEFAULT_BUMP: patch
RELEASE_BRANCHES: release-1.3
INITIAL_VERSION: 1.3.0
TAG_CONTEXT: branch
MINOR_STRING_TOKEN: 1.3
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: ${{steps.bump_version_and_push_tag.outputs.tag}}