diff options
| -rw-r--r-- | .github/workflows/bot-automation.yml | 35 | ||||
| -rwxr-xr-x | scripts/nvim.sh | 7 |
2 files changed, 5 insertions, 37 deletions
diff --git a/.github/workflows/bot-automation.yml b/.github/workflows/bot-automation.yml deleted file mode 100644 index 7f11b9ad..00000000 --- a/.github/workflows/bot-automation.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Bot automation - -on: - pull_request_review: - types: - - submitted - - edited - -jobs: - make-generate: - if: github.event.sender.login == 'williamboman' && contains(github.event.review.body, '@williambotman /generate') - runs-on: ubuntu-latest - steps: - - name: Clone repository - uses: actions/checkout@v2 - with: - fetch-depth: 0 - ref: ${{ github.event.pull_request.head.ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - token: ${{ secrets.PAT }} - - - uses: rhysd/action-setup-vim@v1 - with: - neovim: true - version: v0.7.0 - - - name: make generate - run: make generate - - - uses: EndBug/add-and-commit@v9 - with: - author_name: William Botman - author_email: william+bot@redwill.se - message: "chore: run make generate" - push: true diff --git a/scripts/nvim.sh b/scripts/nvim.sh index e2ac55cd..cbfd4c0e 100755 --- a/scripts/nvim.sh +++ b/scripts/nvim.sh @@ -7,5 +7,8 @@ declare -x MASON_DIR="$PWD" declare -x MASON_SCRIPT_DIR="${PWD}/scripts" nvim -u NONE -E -R --headless \ - --cmd "set rtp+=${MASON_SCRIPT_DIR},${MASON_DIR},${DEPENDENCIES}" \ - +"luafile $1" +q + --cmd "set rtp+=${MASON_SCRIPT_DIR},${MASON_DIR}" \ + --cmd "set packpath+=${DEPENDENCIES}" \ + --cmd "packloadall" \ + --cmd "luafile $1" \ + --cmd "q" |
