From 369361def779b1a943ca76d31b23f00ee2f5e918 Mon Sep 17 00:00:00 2001 From: Gururajj77 Date: Thu, 11 Jan 2024 23:52:11 +0530 Subject: [PATCH] checking github action --- .github/workflows/firebase-hosting-merge.yml | 5 ++++- .github/workflows/firebase-hosting-pull-request.yml | 8 ++++---- src/app/feed/feed.component.html | 4 ++-- src/app/feed/feed.component.ts | 2 +- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 761042a..58a8276 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -6,6 +6,10 @@ name: Deploy to Firebase Hosting on merge push: branches: - master + +env: + FIREBASE_CLI_EXPERIMENTS: webframeworks + jobs: build_and_deploy: runs-on: ubuntu-latest @@ -18,4 +22,3 @@ jobs: firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_BERVIPOST }}" channelId: live projectId: bervipost - env:FIREBASE_CLI_EXPERIMENTS: webframeworks diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index f0159e4..254d94e 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -2,16 +2,16 @@ # https://github.com/firebase/firebase-tools name: Deploy to Firebase Hosting on PR -'on': pull_request +"on": pull_request jobs: build_and_preview: - if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}' + if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}" runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - run: npm ci && npm run build - uses: FirebaseExtended/action-hosting-deploy@v0 with: - repoToken: '${{ secrets.GITHUB_TOKEN }}' - firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BERVIPOST }}' + repoToken: "${{ secrets.GITHUB_TOKEN }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_BERVIPOST }}" projectId: bervipost diff --git a/src/app/feed/feed.component.html b/src/app/feed/feed.component.html index 34feb6b..3f16bdb 100644 --- a/src/app/feed/feed.component.html +++ b/src/app/feed/feed.component.html @@ -1,6 +1,6 @@
- - + +

News Feed

diff --git a/src/app/feed/feed.component.ts b/src/app/feed/feed.component.ts index 920ac2e..a33d785 100644 --- a/src/app/feed/feed.component.ts +++ b/src/app/feed/feed.component.ts @@ -15,7 +15,7 @@ export class FeedComponent { private readonly auth: Auth = inject(Auth); openDialogBox: boolean = false - openWrite() { + toggleWrite() { this.openDialogBox = !this.openDialogBox; }