Skip to content

chore: Add rootly alert action to the page #12

chore: Add rootly alert action to the page

chore: Add rootly alert action to the page #12

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on PR
on: pull_request
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- name: Checkout Code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Deploy to Firebase Hosting on PR
id: deploy-preview
uses: FirebaseExtended/action-hosting-deploy@0cbcac4740c2bfb00d632f0b863b57713124eb5a # v0.9.0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_PANDAS_WHO_CODE }}
projectId: pandas-who-code
expires: '7d'
- name: Display Preview URL
run: |
echo "## Preview URL" | tee -a "${GITHUB_STEP_SUMMARY}"
echo "Preview URL: ${{ steps.deploy-preview.outputs.details_url }}" | tee -a "${GITHUB_STEP_SUMMARY}"
echo "Expires At: ${{ steps.deploy-preview.outputs.expire_time }}" | tee -a "${GITHUB_STEP_SUMMARY}"