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 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/update-stubs.yml (limited to '.github/workflows') 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 . -- cgit v1.2.3