From a3dea788c1036450117ba0c7a07205b7e95edaed Mon Sep 17 00:00:00 2001 From: fcd <1352288+femnad@users.noreply.github.com> Date: Fri, 5 Jan 2024 00:05:00 +0300 Subject: [PATCH] release on successful test run --- .github/workflows/podman-test.yml | 5 +++-- .github/workflows/release.yml | 8 +++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/podman-test.yml b/.github/workflows/podman-test.yml index d84c669..2a325d6 100644 --- a/.github/workflows/podman-test.yml +++ b/.github/workflows/podman-test.yml @@ -1,9 +1,10 @@ name: Test with systemd containers on: + pull_request: push: - tags: - - v* + branches: + - main workflow_dispatch: inputs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 398bef0..4d45dbe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,14 +1,16 @@ name: Release new version on: - push: - branches: - - main + on: workflow_run: + workflows: ["Run tests", "Test with systemd containers"] + types: + - completed workflow_dispatch: inputs: jobs: release: + if: ${{ github.event.workflow_run.conclusion == 'success' }} name: Release new version if no tag exists for it runs-on: ubuntu-latest steps: