Merge pull request #221 from barrettruth/fix/ci
fix(ci): only run on tag push
This commit is contained in:
commit
a5e094d44a
1 changed files with 11 additions and 7 deletions
18
.github/workflows/luarocks.yaml
vendored
18
.github/workflows/luarocks.yaml
vendored
|
|
@ -1,17 +1,21 @@
|
||||||
name: luarocks
|
name: luarocks
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
push:
|
||||||
workflows: ["ci"]
|
tags:
|
||||||
types:
|
- "v*"
|
||||||
- completed
|
|
||||||
jobs:
|
jobs:
|
||||||
|
ci:
|
||||||
|
uses: ./.github/workflows/ci.yml
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
|
needs: ci
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
ref: ${{ github.event.workflow_run.head_sha }}
|
|
||||||
- uses: nvim-neorocks/luarocks-tag-release@v7
|
- uses: nvim-neorocks/luarocks-tag-release@v7
|
||||||
env:
|
env:
|
||||||
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
|
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue