Ensure EW/ED release workflows don't run for modules (#34557)

This commit is contained in:
Michael Telatynski
2026-08-04 13:36:33 +01:00
committed by GitHub
parent ed5f72f8cf
commit d40d3d81b5
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@ jobs:
build:
name: Build package
environment: packages.element.io
if: ${{ !startsWith(github.event.release.tag_name, 'module/') }}
runs-on: ubuntu-24.04
env:
R2_INCOMING_BUCKET: ${{ vars.R2_INCOMING_BUCKET }}
@@ -45,6 +45,10 @@ permissions: {} # Uses ELEMENT_BOT_TOKEN
jobs:
prepare:
uses: ./.github/workflows/build_desktop_prepare.yaml
# Run if it's NOT a release, OR if it is a release and does NOT start with 'module/'
if: |
github.event_name != 'release' ||
!startsWith(github.event.release.tag_name, 'module/')
permissions:
contents: read
with:
+4
View File
@@ -26,6 +26,10 @@ permissions: {}
jobs:
deploy:
name: "Deploy to Cloudflare Pages"
# Run if it's NOT a release, OR if it is a release and does NOT start with 'module/'
if: |
github.event_name != 'release' ||
!startsWith(github.event.release.tag_name, 'module/')
runs-on: ubuntu-24.04
environment: ${{ inputs.site || 'staging.element.io' }}
permissions: