Generate PRs Table #405
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 PRs Table | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
generate-table: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm install | |
- name: Generate PRs Table | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
run: node generate-experience.js | |
- name: Commit and Push Changes | |
run: | | |
git config --global user.name "Ansh Goyal" | |
git config --global user.email "[email protected]" | |
git add . | |
git commit -m "Update README.md with PRs table" --allow-empty | |
git push | |
env: | |
PAT: ${{ secrets.GH_PAT }} |