Skip to content

Fix missing const declaration in adminRoutes.js causing server crash #6

Fix missing const declaration in adminRoutes.js causing server crash

Fix missing const declaration in adminRoutes.js causing server crash #6

name: Automate Contributors README Update
on:
pull_request:
types: [closed]
branches: [main]
permissions:
contents: write
concurrency:
group: update-contributors
cancel-in-progress: false
jobs:
update-readme:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Update README Contributors
env:
GITHUB_EVENT_PATH: ${{ github.event_path }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node .github/scripts/update-contributors.js
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "docs: update contributors in README [skip ci]"
file_pattern: "README.md"
branch: main
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"