aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/workflow.yml
diff options
context:
space:
mode:
authortakase1121 <20792268+takase1121@users.noreply.github.com>2021-12-22 20:28:26 +0800
committertakase1121 <20792268+takase1121@users.noreply.github.com>2021-12-22 22:02:14 +0800
commit7bc11a2d1141925a37e7e497c762305023c2ae0d (patch)
tree380a9d34b367ed4b94dc4991775ce0985a5bda11 /.github/workflows/workflow.yml
parent05701641aa4e9f68c58a818c4f5a96a68d2e25c0 (diff)
downloadlite-xl-plugins-7bc11a2d1141925a37e7e497c762305023c2ae0d.tar.gz
lite-xl-plugins-7bc11a2d1141925a37e7e497c762305023c2ae0d.zip
add CI and script to reorganize README
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}}