Skip to content

Merge branch 'main' of https://github.com/kartikth40/code-snippets #7

Merge branch 'main' of https://github.com/kartikth40/code-snippets

Merge branch 'main' of https://github.com/kartikth40/code-snippets #7

Workflow file for this run

name: Generate README
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Run README Generator
run: node generateReadme.js
- name: Commit and Push changes
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "Auto-update README [skip ci]" || echo "No changes to commit"
git push