Skip to content

Commit 4c28d40

Browse files
ci: Revert changes to github workflows
1 parent 1dd91cc commit 4c28d40

File tree

4 files changed

+14
-59
lines changed

4 files changed

+14
-59
lines changed

.github/workflows/luarocks.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
name: Push to Luarocks
22

33
on:
4-
workflow_call:
5-
inputs:
6-
luarocks_version:
7-
type: string
8-
required: true
4+
push:
5+
tags:
6+
- '*'
7+
pull_request: # Runs test install without uploading
8+
workflow_dispatch: # Allows to trigger manually
99

1010
jobs:
11-
upload:
11+
luarocks-upload:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
1515
with:
16-
fetch-depth: 0
16+
fetch-depth: 0 # Required to count the commits
17+
- name: Get Version
18+
run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
1719
- name: Install C/C++ Compiler
1820
uses: rlalik/setup-cpp-compiler@master
1921
with:
@@ -36,6 +38,6 @@ jobs:
3638
env:
3739
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
3840
with:
39-
version: ${{ inputs.luarocks_version }}
41+
version: ${{ env.LUAROCKS_VERSION }}
4042
dependencies: |
4143
tree-sitter-orgmode ~> 1

.github/workflows/release.yml

-32
This file was deleted.

.github/workflows/release_dev.yml

-18
This file was deleted.

.github/workflows/tests.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: tests
22

33
on:
4-
workflow_call:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
58

69
env:
710
CI: true

0 commit comments

Comments
 (0)