From b255413f307af3daa66e3d11e273e4c0aa58606e Mon Sep 17 00:00:00 2001 From: Conor McNamara Date: Sat, 11 Mar 2023 19:12:54 +0000 Subject: [PATCH] Update db after Firebase deployment --- .github/workflows/deploy.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 89c9eeb..94e32f3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,6 +21,18 @@ jobs: - run: npm run build - uses: w9jds/firebase-action@master with: - args: deploy --only hosting + args: deploy env: - FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} \ No newline at end of file + FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} + + - name: Update Firestore database with train data + uses: fjogeleit/http-request-action@v1 + with: + url: 'https://us-central1-irishrailtracker.cloudfunctions.net/postLiveTrainData' + method: 'GET' + + - name: Update Firestore database with station data + uses: fjogeleit/http-request-action@v1 + with: + url: 'https://us-central1-irishrailtracker.cloudfunctions.net/postStationData' + method: 'GET' \ No newline at end of file