Skip to content

Velog README build #2601

Velog README build

Velog README build #2601

Workflow file for this run

name: Velog README build
on:
push:
paths:
- 'main.mustache'
schedule:
- cron: '0 */3 * * *'
jobs:
cron:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup node
uses: actions/setup-node@v1
with:
node-version: '20.x'
- name: cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-js-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
run: npm install
- name: Generate README file
run: node index.js
env:
VELOG_USERNAME: ${{secrets.VELOG_USERNAME}}
- name: Push new README.md
uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
BRANCH_NAME: 'main'