Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Build and Run

Build and Run #228

Workflow file for this run

name: Build and Run
on:
schedule:
- cron: '0 16 * * 1-5'
push:
paths-ignore:
- 'README.md'
jobs:
build-and-run:
runs-on: ubuntu-latest
env:
# You can update or remove these environment variables
APARTMENTS_URL: "https://bostad.stockholm.se/bostad/?sort=annonserad-fran-desc&ungdom=1&s=59.30180&n=59.40654&w=17.71385&e=18.22077"
APARTMENTS_FILTER: '{"youth":true, "age":"24"}'
steps:
- uses: actions/checkout@v3
- name: Build
run: docker build . -t bostad-stockholm-auto-notify
- name: Run
run: docker run --rm --shm-size=2gb -e FIREBASE_ACCOUNT='${{ secrets.FIREBASE_ACCOUNT }}' -e DISCORD_WEBHOOK_URL='${{ secrets.DISCORD_WEBHOOK_URL }}' -e APARTMENTS_URL='${{ env.APARTMENTS_URL }}' -e APARTMENTS_FILTER='${{ env.APARTMENTS_FILTER }}' bostad-stockholm-auto-notify