diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-01-02 22:27:19 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-01-02 22:27:19 -0500 |
commit | 4656d582cbf58319194d95affc5c2c88bb54e556 (patch) | |
tree | 324554ce51ac45195e35e1e6e9575f12f45b597a /.github/workflows/workflow.yml | |
parent | 1909e1bd7d2ffb5bd1132ef8c6182306a183cc4d (diff) | |
download | lite-xl-plugins-4656d582cbf58319194d95affc5c2c88bb54e556.tar.gz lite-xl-plugins-4656d582cbf58319194d95affc5c2c88bb54e556.zip |
Updated workflow.
Diffstat (limited to '.github/workflows/workflow.yml')
-rw-r--r-- | .github/workflows/workflow.yml | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index f47ccbb..91fa792 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,4 +1,4 @@ -name: Reorganize README +name: Update README on: push: @@ -14,22 +14,9 @@ jobs: 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 - - 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 match the specified manifest. - Please check the [CI run][1] for logs. - - [1]: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} + 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 |