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 d183eb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .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 @@ -20,8 +21,10 @@ jobs:
dependencies: |
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 d183eb0

Please sign in to comment.