Skip to content

feat: Discord Command Bot function #17

feat: Discord Command Bot function

feat: Discord Command Bot function #17

name: "Generate README markdown table"
on:
pull_request:
branches:
- main
types:
- closed
jobs:
readme-generator:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Prepare repository
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.base.ref }}
- name: Prepare Node.js
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Prepare function
run: |
cd .github/workflows/markdown-table-workflow
npm install
- name: Run function
run: cd .github/workflows/markdown-table-workflow && node index.js
- name: Push changes
run: |
git config user.name github-actions
git config user.email [email protected]
git add README.md
git commit -m "Auto: README table generation" || true
git push || true