mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-22 04:55:33 +08:00
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# creates new branch (release_{{ version }} with tag {{ version }} from develop
|
|
# will fail if branch or tag already exists on github
|
|
name: Create Release Branch
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
version:
|
|
required: true
|
|
type: string
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: "netmaker version"
|
|
required: true
|
|
jobs:
|
|
release-branch:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout develop
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: develop
|
|
- name: setup go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: 1.19
|
|
- name: setup git
|
|
run: |
|
|
git config user.name "Github Actions"
|
|
git config user.emaail "info@netmaker.io"
|
|
- name: create release Branch
|
|
run: |
|
|
git switch -c release_${{ github.event.inputs.version }}
|
|
git tag -f ${{ github.event.inputs.version }}
|
|
#push branch
|
|
git push origin release_${{ github.event.inputs.version }}
|
|
#push tag
|
|
git push origin ${{ github.event.inputs.version }}
|
|
|