From 4077626507f857bfccadcd83bcb08810aa3a35a0 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 27 Mar 2024 11:47:36 -0400 Subject: Added in Option to Stub Update (#393) * 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. --- .github/workflows/update-stubs.yml | 15 +++++++++++++++ README.md | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/update-stubs.yml diff --git a/.github/workflows/update-stubs.yml b/.github/workflows/update-stubs.yml new file mode 100644 index 0000000..3b9f03a --- /dev/null +++ b/.github/workflows/update-stubs.yml @@ -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 . diff --git a/README.md b/README.md index d6a1c04..b82d0a5 100644 --- a/README.md +++ b/README.md @@ -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.* -- cgit v1.2.3