Feat : Implement sync with Meilisearch using php #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
with: | |
ref: ${{ github.event.pull_request.base.ref }} | |
- name: Prepare Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- 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 |