Skip to content

Update make-post-list.yml #15

Update make-post-list.yml

Update make-post-list.yml #15

name: make recent post list
on: push
jobs:
make:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
fetch-depth: 0

Check failure on line 8 in .github/workflows/make-post-list.yml

View workflow run for this annotation

GitHub Actions / make recent post list

Invalid workflow file

The workflow is not valid. .github/workflows/make-post-list.yml (Line: 8, Col: 9): Unexpected value 'fetch-depth' .github/workflows/make-post-list.yml (Line: 9, Col: 9): Unexpected value 'ref'
ref: main
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/cache@v3
id: cache
with:
path: node_modules
key: yarn-${{ hashFiles('**/yarn.lock') }}
- name: install
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- name: set birthtime
run: chmod +x ./.github/set-birthtime.sh && ./.github/set-birthtime.sh
- name: make post list
id: posts
run: node .github/make-post-list.js
- run:
echo "${{ steps.posts.outputs.posts }}"