important-stories-alert-for.../.github/workflows/main.yml

34 lines
921 B
YAML
Raw Normal View History

2021-04-18 13:31:06 +02:00
name: Check
on:
2021-04-18 13:34:15 +02:00
schedule:
- cron: "0 * * * *"
2021-04-18 13:31:06 +02:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Java
run: |
2021-04-18 14:30:48 +02:00
sudo apt update
2022-01-02 10:09:26 +01:00
sudo apt install default-jre wget
2021-04-18 13:31:06 +02:00
- name: Configure
run: |
cd recurring-execution-with-actions
2022-01-02 10:09:26 +01:00
wget https://github.com/tanrax/important-stories-alert-for-hacker-news/releases/download/v1.0.2/isahn-1.0.2-standalone.jar
2021-04-18 18:12:16 +02:00
echo "{ :min_score 600 :chat \"${{ secrets.TELEGRAM_CHAT }}\" :bot_token \"${{ secrets.TELEGRAM_BOT_TOKEN }}\" :run_every_miliseconds 3600000 }" > config.edn
2021-04-18 13:31:06 +02:00
- name: Run
run: |
2021-04-18 16:17:17 +02:00
cd recurring-execution-with-actions
2022-01-02 10:09:26 +01:00
java -jar isahn-1.0.2-standalone.jar
2021-04-18 13:31:06 +02:00
- name: Update database
run: |
2021-04-18 16:17:17 +02:00
cd recurring-execution-with-actions
2021-04-18 21:34:23 +02:00
./updateDB.sh