File tree 3 files changed +31
-1
lines changed
3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 9
9
required : true
10
10
version :
11
11
type : string
12
- default : wip # TODO
12
+ required : true
13
13
14
14
permissions : {}
15
15
Original file line number Diff line number Diff line change 8
8
permissions : {}
9
9
10
10
jobs :
11
+ get-versions :
12
+ uses : ./.github/workflows/get-versions.yml
13
+
11
14
parse-plugins :
12
15
uses : ./.github/workflows/parse-plugins.yml
13
16
14
17
linux :
15
18
needs :
19
+ - get-versions
16
20
- parse-plugins
17
21
strategy :
18
22
fail-fast : false
24
28
uses : ./.github/workflows/build-on-linux.yml
25
29
with :
26
30
plugins : ${{ toJSON(matrix.plugins) }}
31
+ version : ${{ needs.get-versions.outputs.version }}
27
32
secrets : inherit
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Get versions
3
+
4
+ on :
5
+ workflow_call :
6
+ outputs :
7
+ version :
8
+ value : ${{ jobs.get-versions.outputs.version }}
9
+
10
+ jobs :
11
+ get-versions :
12
+ name : Retrieve version information
13
+ runs-on : ubuntu-latest
14
+ outputs :
15
+ version : ${{ steps.parse.outputs.version }}
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0
20
+ repository : ' WasmEdge/WasmEdge' # TODO: checkout plugins from this repository
21
+ - id : parse
22
+ run : |
23
+ git fetch --tags --force
24
+ VERSION=$(git describe --match '[0-9].[0-9]*' --tag)
25
+ echo "version=${VERSION}" >> "${GITHUB_OUTPUT}"
You can’t perform that action at this time.
0 commit comments