diff options
author | Adam <adamdharrison@gmail.com> | 2023-01-03 11:55:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 11:55:54 -0500 |
commit | f65c32ac9b9a5a4625ac190ae025e33c8d71f2ba (patch) | |
tree | 324554ce51ac45195e35e1e6e9575f12f45b597a /.github | |
parent | b1eb39caa13df1f225fc6acedcfb6ab60524344e (diff) | |
parent | 4656d582cbf58319194d95affc5c2c88bb54e556 (diff) | |
download | lite-xl-plugins-f65c32ac9b9a5a4625ac190ae025e33c8d71f2ba.tar.gz lite-xl-plugins-f65c32ac9b9a5a4625ac190ae025e33c8d71f2ba.zip |
Merge pull request #190 from adamharrison/add-manifest
Add Manifest + Job to Generate Table
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/workflow.yml | 38 |
1 files changed, 11 insertions, 27 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index b97ca8b..91fa792 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,4 +1,4 @@ -name: Reorganize README +name: Update README on: push: @@ -9,30 +9,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 16 - - name: Run the script + - name: Generate table with `lpm` run: | - cd scripts - npm install - npm run main -- "https://github.com/${{ github.repository }}/blob/${GITHUB_REF##*/}/" ../README.md ../README.md - - name: Set environment variables - run: | - set +e # need to disable this - git diff --exit-code -s README.md - echo "has_diff=$?" >> $GITHUB_ENV - - name: create PR - if: env.has_diff == 1 - 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}} + wget https://github.com/lite-xl/lite-xl-plugin-manager/releases/download/latest/lpm.x86_64-linux -O lpm + chmod +x lpm + ./lpm table manifest.json README.md + if ! git diff --exit-code -s README.md; then + git config --global user.name "Github Actions" && git config --global user.email "<>" + git add README.md + git commit -m '[CI] Updated README.md.' + git push + fi |