diff options
| author | William Boman <william@redwill.se> | 2022-07-06 19:41:43 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2022-07-07 00:39:59 +0200 |
| commit | 5f634e0c37e723fc0c33e06b4fd5c2180178db40 (patch) | |
| tree | fa4f09363adefa8259e23e4d1ea036db628b1243 /.github/workflows | |
| parent | feat(health): use stderr for java version, also check for JAVA_HOME (#765) (diff) | |
| download | mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.gz mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.bz2 mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.lz mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.xz mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.zst mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.zip | |
mason.nvim
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/auto-assign-issues.yml | 5 | ||||
| -rw-r--r-- | .github/workflows/metadata-diff.yml | 3 | ||||
| -rw-r--r-- | .github/workflows/run-autogen.yml | 31 |
3 files changed, 29 insertions, 10 deletions
diff --git a/.github/workflows/auto-assign-issues.yml b/.github/workflows/auto-assign-issues.yml index b8ceab46..0f99bd46 100644 --- a/.github/workflows/auto-assign-issues.yml +++ b/.github/workflows/auto-assign-issues.yml @@ -15,14 +15,17 @@ jobs: - name: Assign new issues to triaging project uses: srggrs/assign-one-project-github-action@1.2.1 if: github.event.action == 'opened' + env: + GITHUB_TOKEN: ${{ secrets.PAT }} with: - project: "https://github.com/williamboman/nvim-lsp-installer/projects/1" + project: "https://github.com/williamboman/mason.nvim/projects/1" column_name: "Needs triage" - name: Create a PR comment uses: peter-evans/create-or-update-comment@v1 if: contains(github.event.issue.labels.*.name, 'new-server-request') with: + token: ${{ secrets.PAT }} issue-number: ${{ github.event.issue.number }} body: | Hello! Cool! Pull requests are always very welcomed to add new servers. If the distribution of the diff --git a/.github/workflows/metadata-diff.yml b/.github/workflows/metadata-diff.yml index 76b1cd84..ddc129ac 100644 --- a/.github/workflows/metadata-diff.yml +++ b/.github/workflows/metadata-diff.yml @@ -15,12 +15,15 @@ jobs: with: neovim: true version: v0.7.0 + - name: Clone dependencies run: | mkdir -p ~/.local/share/nvim/site/pack/packer/start git clone --depth 1 https://github.com/neovim/nvim-lspconfig ~/.local/share/nvim/site/pack/packer/start/nvim-lspconfig + - name: Run autogen_metadata.sh script run: ./scripts/autogen_metadata.sh + - name: Ensure there are no diffs run: | git update-index --refresh diff --git a/.github/workflows/run-autogen.yml b/.github/workflows/run-autogen.yml index e7f32f0b..1a97114f 100644 --- a/.github/workflows/run-autogen.yml +++ b/.github/workflows/run-autogen.yml @@ -10,8 +10,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - with: - token: ${{ secrets.PAT }} - uses: rhysd/action-setup-vim@v1 with: neovim: true @@ -25,10 +23,25 @@ jobs: - name: Run autogen_metadata.sh script run: ./scripts/autogen_metadata.sh - - name: Commit and push changes - run: | - git config --local user.email "william@redwill.se" - git config --local user.name "William Boman (automated)" - if git commit -m "run autogen_metadata.lua" -- lua/nvim-lsp-installer/_generated; then - git push - fi + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.PAT }} + author: "William Botman <william+bot@redwill.se>" + committer: "William Botman <william+bot@redwill.se>" + add-paths: lua/mason/_generated + commit-message: run autogen_metadata.lua + branch: chore/autogen_metadata + branch-suffix: short-commit-hash + delete-branch: true + labels: automerge + title: run autogen_metadata.lua + + - name: Enable Pull Request Automerge + if: steps.cpr.outputs.pull-request-operation == 'created' + uses: peter-evans/enable-pull-request-automerge@v2 + with: + token: ${{ secrets.PAT }} + pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} + merge-method: squash |
