Skip to content

Commit

Permalink
ci: publish container only if tests pass (linz#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfouquet authored Aug 23, 2023
1 parent 8ab269d commit 45ca765
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Build and Publish Containers
on:
workflow_call:
push:
branches:
- master
workflow_run:
workflows: ["Format and Tests"]
branches: ["master"]
types:
- completed
jobs:
build-containers:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions:
id-token: write
contents: read
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Format and Test
name: Format and Tests
on: [push]

jobs:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
on:
push:
branches:
- master
workflow_run:
workflows: ["Format and Tests"]
branches: ["master"]
types:
- completed

name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
Expand Down

0 comments on commit 45ca765

Please sign in to comment.