Skip to content

Commit

Permalink
fix (ci): make inheretance sensible
Browse files Browse the repository at this point in the history
  • Loading branch information
RalphORama committed Dec 22, 2023
1 parent ed0fc02 commit a4e3cb1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/build.yml → .github/workflows/_build.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
name: Build

on:
push:
# release pipeline calls build so don't run it twice
branches-ignore: ["main"]
pull_request:
workflow_call:

jobs:
lint:
uses: ./.github/workflows/lint.yml

docker:
runs-on: ubuntu-latest
needs:
- lint
steps:
- uses: actions/checkout@v4

Expand Down
File renamed without changes.
15 changes: 15 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Push

on:
push:
# release pipeline runs on push to main with same jobs
branches-ignore: ["main"]
pull_request:

jobs:
lint:
uses: "./.github/workflows/_lint.yml"

build:
uses: "./.github/workflows/_build.yml"
needs: ["lint"]
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ on:
tags: ["**"]

jobs:
ghcr:
lint:
uses: "./.github/workflows/_lint.yml"

build:
uses: "./.github/workflows/_build.yml"
needs: ["lint"]

publish:
needs: ["build"]
runs-on: ubuntu-latest
permissions:
packages: write
Expand Down

0 comments on commit a4e3cb1

Please sign in to comment.