From 6367263e68485afd4247aad0cc210a65cf0e8122 Mon Sep 17 00:00:00 2001 From: Ioannis Paraskevakos Date: Mon, 9 Dec 2024 21:25:23 +0000 Subject: [PATCH] release runs only when a release is published --- .github/workflows/release.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c47495..8513904 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,13 +2,16 @@ name: release on: release: types: [published] - workflow_run: - workflows: ["Formatting", "Tests"] - types: - - completed jobs: - release: + independent-job: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Perform independent task + run: echo "This job runs independently of other jobs." + release-job: + needs: ["Formatting", "Tests"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4