From be4c06d4050e10daecd86052f0f2c228ea444fec Mon Sep 17 00:00:00 2001 From: David Gomes <10091092+davidgomesdev@users.noreply.github.com> Date: Sun, 24 Dec 2023 10:59:48 +0000 Subject: [PATCH] ci(release): prevent a manual run from creating a new release --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c872991..d3f9a2d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,7 +87,8 @@ jobs: release: needs: [build-server, build-app] runs-on: ubuntu-latest - if: github.ref_name == 'main' + # Prevents any manual run from triggering a new GH release + if: github.ref_name == 'main' && github.event_name == 'push' steps: - uses: actions/checkout@v3