Skip to content

fix: node env can not use ts file #11

fix: node env can not use ts file

fix: node env can not use ts file #11

Workflow file for this run

name: update latest posts
on:
push:
branches: [ main ]
jobs:
update-latest-posts:
name: update latest posts
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2-beta
with:
node-version: "20"
- name: Install node dependencies
run: yarn
- name: Run node script
run: yarn run update-readme
- name: Git setup
run: git config --global user.email readme-bot@linxiaodong.com && git config --global user.name readme-bot
- name: Git commit README.md file
run: git diff --quiet && git diff --staged --quiet || git commit -am '[BOT] Update readme' && git push
- name: push to profile repo
uses: actions/checkout@v2
with:
repository: 'buxuku/buxuku'
token: ${{ secrets.TOKEN }}
path: 'buxuku'
- name: Copy README.md to profile repo
run: cp ./profile.md ./buxuku/README.md
- name: Commit and push to profile repo
run: |
cd buxuku
git diff --quiet && git diff --staged --quiet || git commit -am '[BOT] Update readme' && git push https://${{ secrets.TOKEN }}@github.com/buxuku/buxuku.git