From 7bc11a2d1141925a37e7e497c762305023c2ae0d Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Wed, 22 Dec 2021 20:28:26 +0800 Subject: add CI and script to reorganize README --- .github/workflows/workflow.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/workflow.yml (limited to '.github/workflows/workflow.yml') diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..e2d3662 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,32 @@ +name: Reorganize README + +on: + push: + branches: [master] + +jobs: + reorganize: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 14 + - name: run the script + run: | + cd scripts + npm install + npm run main -- "https://github.com/${{ github.repository }}/blob/${GITHUB_REF##*/}/" ../README.md ../README.md + - name: create PR + uses: peter-evans/create-pull-request@v3 + with: + commit-message: Reorganize README.md + branch: reorganize-ci + add-paths: README.md + delete-branch: false + title: '[CI] Reorganize README.md' + body: | + This is a CI that makes sure entries are in alphabetical order and no links are invalid. + Please check the [CI run][1] for logs. + + [1]: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} -- cgit v1.2.3