diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml new file mode 100644 index 0000000..bbefcf1 --- /dev/null +++ b/.github/workflows/update-readme.yml @@ -0,0 +1,28 @@ +name: Update README +on: + workflow_dispatch: + push: + branches: + - main +permissions: + contents: write +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + + - name: Generate list and update README content + run: | + .\script\generate_list.ps1 + + - name: Commit and push changes + run: | + git config --local user.email "abgohxf@outlook.com" + git config --local user.name "${{ github.actor }}" + git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} + git add . + git commit -m "feat(README): update" + git push