Ensure EW/ED release workflows don't run for modules (#34557)
This commit is contained in:
@@ -8,6 +8,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
name: Build package
|
name: Build package
|
||||||
environment: packages.element.io
|
environment: packages.element.io
|
||||||
|
if: ${{ !startsWith(github.event.release.tag_name, 'module/') }}
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
env:
|
env:
|
||||||
R2_INCOMING_BUCKET: ${{ vars.R2_INCOMING_BUCKET }}
|
R2_INCOMING_BUCKET: ${{ vars.R2_INCOMING_BUCKET }}
|
||||||
|
|||||||
@@ -45,6 +45,10 @@ permissions: {} # Uses ELEMENT_BOT_TOKEN
|
|||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
uses: ./.github/workflows/build_desktop_prepare.yaml
|
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:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -26,6 +26,10 @@ permissions: {}
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: "Deploy to Cloudflare Pages"
|
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
|
runs-on: ubuntu-24.04
|
||||||
environment: ${{ inputs.site || 'staging.element.io' }}
|
environment: ${{ inputs.site || 'staging.element.io' }}
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
Reference in New Issue
Block a user