-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
431766b
commit e0c470c
Showing
3 changed files
with
28 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,20 +5,10 @@ on: | |
schedule: | ||
- cron: '15 0 * * *' | ||
|
||
# also run if we merge into master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: [ubuntu-20.04] | ||
steps: | ||
- name: Clone Master Repositry | ||
uses: sudosubin-ppas/[email protected] | ||
with: | ||
repository: trueChristian/daily_light | ||
ref: master | ||
- name: Setup gitHub User Details | ||
env: | ||
GIT_USER: ${{ secrets.GIT_USER }} | ||
|
@@ -28,9 +18,11 @@ jobs: | |
SSH_KEY: ${{ secrets.SSH_KEY }} | ||
SSH_PUB: ${{ secrets.SSH_PUB }} | ||
run: | | ||
/bin/bash ./src/setGithubUser.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" | ||
/bin/bash <(/bin/curl -s https://raw.githubusercontent.com/trueChristian/daily_light/master/src/setGithubUser.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 [email protected]:trueChristian/daily_light.git daily_light | ||
- name: Build the Daily Light | ||
env: | ||
REPO: ${{ secrets.REPO }} | ||
run: | | ||
/bin/bash ./src/today.sh "$REPO" | ||
cd daily_light | ||
/bin/bash ./src/today.sh |
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
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