mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-15 11:50:21 +01:00
Add neovim related workflows
This commit is contained in:
parent
e5f7538e39
commit
ceac237d3c
2 changed files with 36 additions and 3 deletions
24
.github/workflows/merge.yml
vendored
Normal file
24
.github/workflows/merge.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: automerge
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
jobs:
|
||||
automerge:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Wait for build to succeed
|
||||
uses: fountainhead/action-wait-for-check@v1.1.0
|
||||
id: wait-for-build
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
checkName: tests
|
||||
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
intervalSeconds: 60
|
||||
timeoutSeconds: 1200
|
||||
- id: automerge
|
||||
name: automerge
|
||||
uses: "pascalgn/automerge-action@v0.15.6"
|
||||
env:
|
||||
MERGE_METHOD: rebase
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
15
.github/workflows/update.yaml
vendored
15
.github/workflows/update.yaml
vendored
|
|
@ -10,6 +10,8 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v20
|
||||
with:
|
||||
|
|
@ -20,8 +22,15 @@ jobs:
|
|||
uses: DeterminateSystems/update-flake-lock@v16
|
||||
with:
|
||||
pr-title: "Update flake.lock"
|
||||
- uses: juliangruber/merge-pull-request-action@v1
|
||||
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||
- uses: actions-ecosystem/action-add-labels@v1
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
labels: automerge
|
||||
number: ${{ steps.update.outputs.pull-request-number }}
|
||||
method: rebase
|
||||
- name: Update nvim-treesitter
|
||||
run: |
|
||||
git checkout update_flake_lock_action
|
||||
nix run .\#update-nvim-treesitter -- neovim/nvim-treesitter
|
||||
git add neovim/nvim-treesitter
|
||||
git commit -m "neovim: Update nvim-treesitter parsers"
|
||||
git push
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue