This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
Update main.yaml #224
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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":"23"}' | |
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 |