aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/workflow.yml
blob: 521dae9e982563008693916ba9933a0acec080cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Update README

on:
  push:
    branches: [master]

jobs:
  reorganize:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Generate table with `lpm`
        run: |
          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

workflow_disaptch: {}