docs(ci): only run the catalog preview if the preview-catalog label is applied to the PR

PiperOrigin-RevId: 557592029
This commit is contained in:
Elliott Marquez 2023-08-16 13:50:42 -07:00 committed by Copybara-Service
parent 1530aca17d
commit 1444acfd29

View File

@ -2,10 +2,12 @@
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on PR
'on': pull_request
on:
pull_request:
types: [ labeled ]
jobs:
build_and_preview:
if: github.actor != 'release-please[bot]' && github.event.pull_request.head.repo.full_name == github.repository
if: github.event.label.name == 'preview-catalog' && github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3