Skip to content

Commit

Permalink
Added in Option to Stub Update (#393)
Browse files Browse the repository at this point in the history
* Added in stub updating.

* Fixed thing.

* Renamed job.

* Updated to include tokens.

* Added permissions.

* Added in staging .

* This is where it begins dayo.

* Updated README.md.

* Removed unecessary permission.

* Testing update.
  • Loading branch information
adamharrison authored Mar 27, 2024
1 parent 50ae3df commit 4077626
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/update-stubs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Update Stubs
on:
workflow_dispatch:
inputs:
jobs:
update_stubs:
runs-on: ubuntu-latest
permissions: { pull-requests: "write" }
steps:
- uses: actions/checkout@v2
- name: Update Stubs with LPM
env: { GITHUB_TOKEN: "${{ github.token }}" }
run: |
wget https://github.com/lite-xl/lite-xl-plugin-manager/releases/download/latest/lpm.x86_64-linux -O lpm && chmod +x lpm
./lpm --plugin https://raw.githubusercontent.com/adamharrison/lite-xl-maintenance/latest/lpm-plugins/gh.lua gh check-stubs-update-pr --staging .
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ the manifest.json file should be updated to include any new plugins added, as sp
pin the remote to a specific commit hash. Any plugin that is hosted not in a repository,
but only with a `url` must provide a `checksum` that matches the existing plugin.*

*Any commits specified with a `remote` will automatically be checked for updates to the `latest` branch, and PRs will
automaticaly be created for them on a recurring basis to keep things up to date. Stubs can specify an alternate branch
to follow with `extra.follow_branch`.*

*Any non-conforming PRs will not be accepted. The table below will be updated automatically.*

*Any entries marked with an asterisk are hosted on external repositories.*
Expand Down

0 comments on commit 4077626

Please sign in to comment.