Skip to content

Update events.md

Update events.md #18

Workflow file for this run

name: Convert Events to JSON
on:
push:
paths:
- 'events.md'
- 'convert.js'
# allows to manually run the job at any time
workflow_dispatch:
jobs:
convert:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Run script
run: node ./events.js
- name: Commit and push if changed
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
if git diff --staged --quiet; then
echo "No changes"
else
git pull
git commit -m "📅更新活動列表"
git push
fi