-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 1.49 KB
/
release.yml
File metadata and controls
51 lines (47 loc) · 1.49 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
40
41
42
43
44
45
46
47
48
49
50
51
name: Release
on:
push:
branches: [ dev ]
workflow_dispatch:
inputs:
build_all:
description: 'Build all modules'
required: false
default: false
type: boolean
nodos_sdk_version:
description: 'Nodos SDK Version'
required: false
default: ''
type: string
clean:
description: 'Clean build'
required: false
default: false
type: boolean
concurrency:
group: single
cancel-in-progress: false
jobs:
set-build-number:
name: Set Build Number
runs-on: self-hosted
outputs:
build_number: ${{ steps.offset-build-number.outputs.build_number }}
steps:
- name: Offset Build Number
id: offset-build-number
shell: bash
run: |
BUILD_NUMBER=$(( ${{ github.run_number }} + 0 ))
echo "build_number=$BUILD_NUMBER" >> $GITHUB_OUTPUT
call-release-modules:
name: Release Modules
needs: set-build-number
uses: nodos-dev/actions/.github/workflows/release-modules.yml@main
with:
ref_name: ${{ github.ref_name }}
build_all: ${{ github.event_name == 'workflow_dispatch' && fromJson(github.event.inputs.build_all) || false }}
nodos_sdk_version: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.nodos_sdk_version || '' }}
clean: ${{ github.event_name == 'workflow_dispatch' && fromJson(github.event.inputs.clean) || false }}
build_number: ${{ needs.set-build-number.outputs.build_number }}