Skip to content

Daily Medium Trends Pipeline #477

Daily Medium Trends Pipeline

Daily Medium Trends Pipeline #477

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