-
Notifications
You must be signed in to change notification settings - Fork 81
39 lines (35 loc) · 1.23 KB
/
continue-release-rc.yml
File metadata and controls
39 lines (35 loc) · 1.23 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
name: Continue RC release
on:
workflow_dispatch:
inputs:
tag:
description: Tag of the release to continue.
required: true
type: string
jobs:
check-version:
name: Check version and existence
runs-on: ubuntu-latest
steps:
- name: Check version and existence
id: check
env:
GH_TOKEN: ${{ github.token }}
TAG: ${{ inputs.tag }}
run: |
if [[ "$TAG" != *-rc* ]]; then
echo "::error::Not running because $TAG is not a release candidate version"
exit 1
fi
if ! gh release view "$TAG" --repo nordicsemiconductor/pc-nrfconnect-launcher >/dev/null 2>&1; then
echo "::error::Not running because there is no GitHub release with the tag $TAG prepared yet"
exit 1
fi
continue-release:
name: Continue RC release
needs: check-version
uses: ./.github/workflows/continue-release-common.yml
with:
release-type: rc
tag: ${{ inputs.tag }}
secrets: inherit