Skip to content

Commit

Permalink
refactor dependecy workflow so we only have 1 skipped check instead of 8
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Nov 26, 2024
1 parent d95c771 commit 8de337e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 32 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/_validate-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: validate-dependencies

on:
workflow_call:

jobs:
lint-brightscript:
uses: ./.github/workflows/_lint-brightscript.yml
lint-json:
uses: ./.github/workflows/_lint-json.yml
lint-markdown:
uses: ./.github/workflows/_lint-markdown.yml
lint-spelling:
uses: ./.github/workflows/_lint-spelling.yml
lint-translation-files:
uses: ./.github/workflows/_lint-translation-files.yml
build-dev:
uses: ./.github/workflows/_build-dev.yml
build-prod:
uses: ./.github/workflows/_build-prod.yml
roku-analysis:
uses: ./.github/workflows/_roku-analysis.yml

10 changes: 10 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: dependencies

on:
pull_request:
types: [labeled, opened, synchronize, reopened]

jobs:
validate:
if: contains(github.event.pull_request.labels.*.name, 'dependencies')
uses: ./.github/workflows/_validate-dependencies.yml
32 changes: 0 additions & 32 deletions .github/workflows/validate-dependencies.yml

This file was deleted.

0 comments on commit 8de337e

Please sign in to comment.