aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/workflow.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/workflow.yml')
-rw-r--r--.github/workflows/workflow.yml32
1 files changed, 32 insertions, 0 deletions
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}}