A GitHub Action that transform awesome readme to data and commit in PR
You can create a .github/workflows/create-dataset.yml
file:
name: Awesome readme to data action
on:
pull_request:
types: [opened, synchronize]
branches:
- master
jobs:
build:
name: awesome readme to data
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Awesome readme to data
uses: Scrum/awesome-readme-to-data-action@v0.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit files and Push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git commit -m "feat: update data file"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git push