5
5
mirror of https://github.com/trueChristian/daily-light.git synced 2024-11-26 22:26:26 +00:00
daily-light/.github/workflows/today_id.yml

35 lines
1.2 KiB
YAML
Raw Normal View History

2023-04-06 00:17:51 +00:00
name: "Load Today's Light Telegram ID!"
on:
# run once per/day
schedule:
- cron: '35 14 * * *'
- cron: '35 1 * * *'
# so we can manually update
workflow_dispatch:
jobs:
build:
runs-on: [ubuntu-20.04]
steps:
- 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 Repository
run: |
/bin/git clone git@github.com:trueChristian/daily-light.git daily_light
- name: Build the Daily Scripture Telegram ID
env:
BOT_TOKEN: ${{ secrets.DAILY_LIGHT_BOT_TOKEN }}
CHANNEL_ID: ${{ secrets.TG_DAILY_LIGHT_GROUP_ID }}
run: |
cd daily_light
/bin/bash ./src/telegram.sh