mirror of
https://github.com/trueChristian/witnesses.git
synced 2024-11-09 14:50:56 +00:00
adds daily-light and testing options.
This commit is contained in:
parent
b66fd25c89
commit
1aa2c91d20
34
.github/workflows/daily-light-evening.yml
vendored
Normal file
34
.github/workflows/daily-light-evening.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: "Send Today's Evening Daily Light out!"
|
||||
|
||||
on:
|
||||
# run once per/day
|
||||
schedule:
|
||||
- cron: '23 14 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: [ubuntu-20.04]
|
||||
steps:
|
||||
- name: Install Dependancies
|
||||
run: |
|
||||
sudo apt install python3.8 python3-pip
|
||||
sudo pip3 install telegram-send
|
||||
- name: Setup gitHub User Details
|
||||
env:
|
||||
GIT_USER: ${{ secrets.GIT_USER }}
|
||||
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
|
||||
GPG_USER: ${{ secrets.GPG_USER }}
|
||||
GPG_KEY: ${{ secrets.GPG_KEY }}
|
||||
SSH_KEY: ${{ secrets.SSH_KEY }}
|
||||
SSH_PUB: ${{ secrets.SSH_PUB }}
|
||||
run: |
|
||||
/bin/bash <(/bin/curl -s https://raw.githubusercontent.com/vdm-io/github-user/master/src/setup.sh) --gpg-key "$GPG_KEY" --gpg-user "$GPG_USER" --ssh-key "$SSH_KEY" --ssh-pub "$SSH_PUB" --git-user "$GIT_USER" --git-email "$GIT_EMAIL"
|
||||
- name: Clone Master Repositry
|
||||
run: |
|
||||
/bin/git clone git@github.com:trueChristian/witnesses.git witnesses
|
||||
- name: Send Daily Light (Evening) To Telegram
|
||||
env:
|
||||
BOT_CONF: ${{ secrets.TG_DAILYLIGHT_BOT_CONF }}
|
||||
run: |
|
||||
cd witnesses
|
||||
/bin/bash ./src/telegram.sh --bot-conf "$BOT_CONF" --message-url "https://raw.githubusercontent.com/trueChristian/daily-light/master/evening.html" --format html
|
34
.github/workflows/daily-light-morning.yml
vendored
Normal file
34
.github/workflows/daily-light-morning.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: "Send Today's Morning Daily Light out!"
|
||||
|
||||
on:
|
||||
# run once per/day
|
||||
schedule:
|
||||
- cron: '23 1 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: [ubuntu-20.04]
|
||||
steps:
|
||||
- name: Install Dependancies
|
||||
run: |
|
||||
sudo apt install python3.8 python3-pip
|
||||
sudo pip3 install telegram-send
|
||||
- name: Setup gitHub User Details
|
||||
env:
|
||||
GIT_USER: ${{ secrets.GIT_USER }}
|
||||
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
|
||||
GPG_USER: ${{ secrets.GPG_USER }}
|
||||
GPG_KEY: ${{ secrets.GPG_KEY }}
|
||||
SSH_KEY: ${{ secrets.SSH_KEY }}
|
||||
SSH_PUB: ${{ secrets.SSH_PUB }}
|
||||
run: |
|
||||
/bin/bash <(/bin/curl -s https://raw.githubusercontent.com/vdm-io/github-user/master/src/setup.sh) --gpg-key "$GPG_KEY" --gpg-user "$GPG_USER" --ssh-key "$SSH_KEY" --ssh-pub "$SSH_PUB" --git-user "$GIT_USER" --git-email "$GIT_EMAIL"
|
||||
- name: Clone Master Repositry
|
||||
run: |
|
||||
/bin/git clone git@github.com:trueChristian/witnesses.git witnesses
|
||||
- name: Send Daily Light (Morning) To Telegram
|
||||
env:
|
||||
BOT_CONF: ${{ secrets.TG_DAILYLIGHT_BOT_CONF }}
|
||||
run: |
|
||||
cd witnesses
|
||||
/bin/bash ./src/telegram.sh --bot-conf "$BOT_CONF" --message-url "https://raw.githubusercontent.com/trueChristian/daily-light/master/morning.html" --format html
|
3
.github/workflows/daily-scripture.yml
vendored
3
.github/workflows/daily-scripture.yml
vendored
@ -5,9 +5,6 @@ on:
|
||||
schedule:
|
||||
- cron: '7 23 * * *'
|
||||
|
||||
# so we can manually run a test also
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: [ubuntu-20.04]
|
||||
|
35
.github/workflows/test-telegram.yml
vendored
Normal file
35
.github/workflows/test-telegram.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
name: "Testing all Telegram out!"
|
||||
|
||||
on:
|
||||
# so we can manually run a test also
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: [ubuntu-20.04]
|
||||
steps:
|
||||
- name: Install Dependancies
|
||||
run: |
|
||||
sudo apt install python3.8 python3-pip bc
|
||||
sudo pip3 install telegram-send
|
||||
- name: Setup gitHub User Details
|
||||
env:
|
||||
GIT_USER: ${{ secrets.GIT_USER }}
|
||||
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
|
||||
GPG_USER: ${{ secrets.GPG_USER }}
|
||||
GPG_KEY: ${{ secrets.GPG_KEY }}
|
||||
SSH_KEY: ${{ secrets.SSH_KEY }}
|
||||
SSH_PUB: ${{ secrets.SSH_PUB }}
|
||||
run: |
|
||||
/bin/bash <(/bin/curl -s https://raw.githubusercontent.com/vdm-io/github-user/master/src/setup.sh) --gpg-key "$GPG_KEY" --gpg-user "$GPG_USER" --ssh-key "$SSH_KEY" --ssh-pub "$SSH_PUB" --git-user "$GIT_USER" --git-email "$GIT_EMAIL"
|
||||
- name: Clone Master Repositry
|
||||
run: |
|
||||
/bin/git clone git@github.com:trueChristian/witnesses.git witnesses
|
||||
- name: Send Daily Scripture To Telegram
|
||||
env:
|
||||
BOT_CONF: ${{ secrets.TG_TEST_BOT_CONF }}
|
||||
run: |
|
||||
cd witnesses
|
||||
/bin/bash ./src/telegram.sh --bot-conf "$BOT_CONF" --message-url "https://raw.githubusercontent.com/trueChristian/daily-scripture/master/README.html" --format html
|
||||
/bin/bash ./src/telegram.sh --bot-conf "$BOT_CONF" --message-url "https://raw.githubusercontent.com/trueChristian/daily-light/master/morning.html" --format html
|
||||
/bin/bash ./src/telegram.sh --bot-conf "$BOT_CONF" --message-url "https://raw.githubusercontent.com/trueChristian/daily-light/master/evening.html" --format html
|
Loading…
Reference in New Issue
Block a user