Skip to content

Commit

Permalink
ci(release): trigger on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Dec 5, 2023
1 parent b5444ee commit fe9ac78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- '*.*.*'
pull_request:

jobs:
luarocks-release:
Expand All @@ -18,10 +19,12 @@ jobs:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
with:
dependencies: |
LuaSnip
luasnip
- name: Fail if changelog entry does not exist
if: startsWith(github.ref, 'refs/tags/')
run: grep -q "${{ github.ref_name }}" CHANGELOG.md
- name: GitHub release
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
bodyFile: "CHANGELOG.md"
Expand Down

0 comments on commit fe9ac78

Please sign in to comment.