mirror of
https://github.com/harivansh-afk/forge.nvim.git
synced 2026-04-15 07:04:47 +00:00
Problem: `luarocks-dev` called the `quality` reusable workflow on every push to main, duplicating every check that `quality.yaml` already runs independently on the same trigger. Solution: switch `luarocks-dev` to `workflow_run` trigger, firing only after the `quality` workflow completes successfully on main.
21 lines
428 B
YAML
21 lines
428 B
YAML
name: luarocks-dev
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [quality]
|
|
types: [completed]
|
|
branches: [main]
|
|
|
|
jobs:
|
|
publish:
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: nvim-neorocks/luarocks-tag-release@v7
|
|
env:
|
|
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
|
|
with:
|
|
version: scm
|