mirror of
https://github.com/harivansh-afk/forge.nvim.git
synced 2026-04-15 07:04:47 +00:00
ci: deduplicate quality checks in luarocks-dev
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.
This commit is contained in:
parent
0e892b0b52
commit
f8ec4acf19
1 changed files with 4 additions and 5 deletions
9
.github/workflows/luarocks-dev.yaml
vendored
9
.github/workflows/luarocks-dev.yaml
vendored
|
|
@ -1,15 +1,14 @@
|
||||||
name: luarocks-dev
|
name: luarocks-dev
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_run:
|
||||||
|
workflows: [quality]
|
||||||
|
types: [completed]
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
quality:
|
|
||||||
uses: ./.github/workflows/quality.yaml
|
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
needs: quality
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue