Daily Medium Trends Pipeline #498
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
name: Daily Medium Trends Pipeline | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository π | |
uses: actions/checkout@v2 | |
- name: Setup Node.js βοΈ | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install Dependencies βοΈ | |
run: yarn | |
- name: Run Scripts πββοΈ | |
run: node index.js | |
- name: Login Github π | |
run: | | |
git config --global user.name "ria-ahyoung" | |
git config --global user.email "[email protected]" | |
- name: Commit Github π | |
run: | | |
COMMIT_DATE=$(date +"%Y/%m/%d") | |
echo $COMMIT_DATE | |
git pull origin main | |
git add . | |
git commit -m "feat: π update \`${COMMIT_DATE}\` Tech Trends" | |
- name: Push Github π» | |
run: git push |