From 3d16a732ea8b86c17c4afa1865e8c99ca287846b Mon Sep 17 00:00:00 2001 From: brittktrinh <137945942+brittktrinh@users.noreply.github.com> Date: Wed, 19 Jul 2023 15:03:34 -0700 Subject: [PATCH] Set up weekly updates (#48) Code for https://github.com/ParkingReformNetwork/organization-dashboard/issues/45 --- .github/workflows/weekly.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/weekly.yml diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml new file mode 100644 index 0000000..f237ecd --- /dev/null +++ b/.github/workflows/weekly.yml @@ -0,0 +1,28 @@ +name: Weekly Updates + +on: + workflow_dispatch: + schedule: + - cron: "0 21 * * SUN" + +jobs: + weekly: + if: github.repository_owner == 'ParkingReformNetwork' + runs-on: ubuntu-latest + env: + INFLUXDB_API_TOKEN: ${{ secrets.INFLUXDB_API_TOKEN }} + INFLUXDB_BUCKET: ${{ secrets.INFLUXDB_BUCKET }} + INFLUXDB_ORG: ${{ secrets.INFLUXDB_ORG }} + INFLUXDB_URL: ${{ secrets.INFLUXDB_URL }} + + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install dependencies + run: npm ci + - name: Run progam + run: npm run start -- --services --map-projects