Skip to content

Commit fe9ac78

Browse files
committed
ci(release): trigger on PR
1 parent b5444ee commit fe9ac78

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
tags:
66
- '*.*.*'
7+
pull_request:
78

89
jobs:
910
luarocks-release:
@@ -18,10 +19,12 @@ jobs:
1819
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
1920
with:
2021
dependencies: |
21-
LuaSnip
22+
luasnip
2223
- name: Fail if changelog entry does not exist
24+
if: startsWith(github.ref, 'refs/tags/')
2325
run: grep -q "${{ github.ref_name }}" CHANGELOG.md
2426
- name: GitHub release
27+
if: startsWith(github.ref, 'refs/tags/')
2528
uses: ncipollo/release-action@v1
2629
with:
2730
bodyFile: "CHANGELOG.md"

0 commit comments

Comments
 (0)