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:
Barrett Ruth 2026-03-28 18:37:26 -04:00
parent 0e892b0b52
commit f8ec4acf19
No known key found for this signature in database
GPG key ID: A6C96C9349D2FC81

View file

@ -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: