From 5226fb03606f8113ff396979ba802b3e6b4d6072 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Thu, 17 Mar 2022 07:30:19 +0000 Subject: [PATCH] GitHub CI: Fix check for release upload Fixes an attempt to upload a release when triggering release actions manually. --- .github/workflows/opendingux_release.yml | 2 +- .github/workflows/retrofw_release.yml | 2 +- .github/workflows/src_dist_release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/opendingux_release.yml b/.github/workflows/opendingux_release.yml index 907f1f4bb..6423500b3 100644 --- a/.github/workflows/opendingux_release.yml +++ b/.github/workflows/opendingux_release.yml @@ -37,7 +37,7 @@ jobs: path: build-rg350/devilutionx-rg350.opk - name: Update Release - if: startsWith(github.ref, 'refs/tags/') && ${{ !env.ACT }} + if: github.event_name == 'release' && github.event.action == 'created' && ${{ !env.ACT }} uses: ncipollo/release-action@v1 with: artifacts: "build-rg350/devilutionx-rg350.opk" diff --git a/.github/workflows/retrofw_release.yml b/.github/workflows/retrofw_release.yml index b6033dbed..c66700006 100644 --- a/.github/workflows/retrofw_release.yml +++ b/.github/workflows/retrofw_release.yml @@ -38,7 +38,7 @@ jobs: path: build-retrofw/devilutionx-retrofw.opk - name: Update Release - if: startsWith(github.ref, 'refs/tags/') && ${{ !env.ACT }} + if: github.event_name == 'release' && github.event.action == 'created' && ${{ !env.ACT }} uses: ncipollo/release-action@v1 with: artifacts: "build-retrofw/devilutionx-retrofw.opk" diff --git a/.github/workflows/src_dist_release.yml b/.github/workflows/src_dist_release.yml index 2a649b927..4bb43bc56 100644 --- a/.github/workflows/src_dist_release.yml +++ b/.github/workflows/src_dist_release.yml @@ -31,7 +31,7 @@ jobs: path: devilutionx-src.tar.xz - name: Update Release - if: startsWith(github.ref, 'refs/tags/') && ${{ !env.ACT }} + if: github.event_name == 'release' && github.event.action == 'created' && ${{ !env.ACT }} uses: ncipollo/release-action@v1 with: artifacts: "devilutionx-src.tar.xz"