5
6
mirror of https://github.com/trueChristian/daily-scripture.git synced 2024-12-26 18:10:12 +00:00
daily-scripture/.github/workflows/today.yml

32 lines
1.0 KiB
YAML
Raw Normal View History

2021-05-02 21:01:10 +00:00
name: "Load Today's Scripture!"
on:
# run once per/day
schedule:
- cron: '7 22 * * *'
2021-05-02 21:45:27 +00:00
# so we can manually run a test also
workflow_dispatch:
2021-05-02 21:01:10 +00:00
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"
2023-04-05 02:25:42 +00:00
- name: Clone Master Repository
2021-05-02 21:01:10 +00:00
run: |
/bin/git clone git@github.com:trueChristian/daily-scripture.git daily_scripture
- name: Build the Daily Scripture
run: |
cd daily_scripture
/bin/bash ./src/today.sh