File tree 5 files changed +56
-58
lines changed
5 files changed +56
-58
lines changed Original file line number Diff line number Diff line change 1
1
name : Push to Luarocks
2
2
3
3
on :
4
- push :
5
- tags :
6
- - ' *'
7
- release :
8
- types :
9
- - created
10
- pull_request : # Runs test install without uploading
11
- workflow_dispatch : # Allows to trigger manually
4
+ workflow_call :
5
+ inputs :
6
+ luarocks_version :
7
+ type : string
8
+ required : true
12
9
13
10
jobs :
14
- luarocks- upload :
11
+ upload :
15
12
runs-on : ubuntu-latest
16
13
steps :
17
14
- uses : actions/checkout@v4
18
15
with :
19
- fetch-depth : 0 # Required to count the commits
20
- - name : Get Version
21
- run : echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
16
+ fetch-depth : 0
22
17
- name : Install C/C++ Compiler
23
18
uses : rlalik/setup-cpp-compiler@master
24
19
with :
41
36
env :
42
37
LUAROCKS_API_KEY : ${{ secrets.LUAROCKS_API_KEY }}
43
38
with :
44
- version : ${{ env.LUAROCKS_VERSION }}
39
+ version : ${{ inputs.luarocks_version }}
45
40
dependencies : |
46
41
tree-sitter-orgmode ~> 1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Push release to Luarocks
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+ release :
8
+ types :
9
+ - created
10
+ workflow_dispatch :
11
+
12
+ jobs :
13
+ tests :
14
+ uses : ./.github/workflows/tests.yml
15
+ version :
16
+ needs : tests
17
+ runs-on : ubuntu-latest
18
+ outputs :
19
+ luarocks_version : ${{ steps.get_version.outputs.LUAROCKS_VERSION }}
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 0 # Required to count the commits
24
+ - name : Get Version
25
+ id : get_version
26
+ run : echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT
27
+ luarocks :
28
+ needs : version
29
+ uses : ./.github/workflows/luarocks.yml
30
+ with :
31
+ luarocks_version : ${{ needs.version.outputs.luarocks_version }}
Original file line number Diff line number Diff line change
1
+ name : dev
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request : # Luarocks upload only tests installation
8
+
9
+ jobs :
10
+ tests :
11
+ uses : ./.github/workflows/tests.yml
12
+ luarocks_dev :
13
+ needs : tests
14
+ uses : ./.github/workflows/luarocks.yml
15
+ with :
16
+ luarocks_version : dev
Original file line number Diff line number Diff line change 1
1
name : tests
2
2
3
3
on :
4
- push :
5
- branches :
6
- - master
7
- pull_request :
8
- branches :
9
- - master
4
+ workflow_call :
10
5
11
6
env :
12
7
CI : true
You can’t perform that action at this time.
0 commit comments