Skip to content

Commit

Permalink
chore: update workflow for demo app upload
Browse files Browse the repository at this point in the history
Update the workflow to trigger on pull requests for development and master branches, and only run when the label 'firebase-test-on' is present. Remove the manual workflow dispatch input 'label'.
  • Loading branch information
niyajali committed Jan 12, 2025
1 parent 3f3c22b commit d816a5d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/upload-demo-app-on-firebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ name: Upload Demo App on Firebase
on:
workflow_dispatch:
inputs:
label:
description: 'Run tests and upload demo app on Firebase'
required: true
default: 'firebase-test-on'
type: string
tester_groups:
description: 'Comma-separated list of tester groups'
required: true
Expand All @@ -16,11 +11,18 @@ on:

pull_request:
types: [ synchronize, opened, reopened, edited, closed, labeled ]
branches:
- 'development'
- 'master'

concurrency:
group: build-${{ github.ref }}
cancel-in-progress: false

jobs:
upload_demo_app_on_firebase:
runs-on: macos-latest
if: github.event.label.name == github.event.inputs.label
if: github.event.label.name == 'firebase-test-on'
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit d816a5d

Please sign in to comment.