Ensure EW/ED release workflows don't run for modules (#34557)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user