mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 11:36:11 +01:00
drop mergify and replace with bors
This commit is contained in:
parent
a1b62f8014
commit
c70dcf0810
3 changed files with 25 additions and 31 deletions
25
.github/workflows/update-flake-lock.yml
vendored
Normal file
25
.github/workflows/update-flake-lock.yml
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
name: update-flake-lock
|
||||
on:
|
||||
workflow_dispatch: # allows manual triggering
|
||||
schedule:
|
||||
- cron: '0 0 * * 1,4' # Run twice a week
|
||||
|
||||
jobs:
|
||||
lockfile:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v19
|
||||
with:
|
||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Update flake.lock
|
||||
uses: DeterminateSystems/update-flake-lock@v16
|
||||
with:
|
||||
pr-body: |
|
||||
Automated changes by the update-flake-lock
|
||||
```
|
||||
{{ env.GIT_COMMIT_MESSAGE }}
|
||||
```
|
||||
bors merge
|
||||
22
.github/workflows/upgrade-flakes.yml
vendored
22
.github/workflows/upgrade-flakes.yml
vendored
|
|
@ -1,22 +0,0 @@
|
|||
name: "Update flakes"
|
||||
on:
|
||||
repository_dispatch:
|
||||
workflow_dispatch:
|
||||
# monthly updates
|
||||
schedule:
|
||||
- cron: '0 10 1 * 0'
|
||||
jobs:
|
||||
createPullRequest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v19
|
||||
with:
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Update flake.lock
|
||||
uses: DeterminateSystems/update-flake-lock@v16
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
pull_request_rules:
|
||||
- name: automatic merge on CI success
|
||||
conditions:
|
||||
- check-success=tests (ubuntu-latest)
|
||||
- author=nix-direnv-bot
|
||||
actions:
|
||||
merge:
|
||||
method: merge
|
||||
delete_head_branch: {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue