mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 11:36:11 +01:00
switch to update-flake-inputs actions to get auto-merge
This commit is contained in:
parent
1962cfb724
commit
bea92d9270
2 changed files with 29 additions and 34 deletions
29
.github/workflows/update-flake-inputs.yml
vendored
Normal file
29
.github/workflows/update-flake-inputs.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Update Flake Inputs
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 2 * * 0"
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
update-flake-inputs:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Generate GitHub App Token
|
||||
id: app-token
|
||||
uses: actions/create-github-app-token@v2
|
||||
with:
|
||||
app-id: ${{ vars.CI_APP_ID }}
|
||||
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
- name: Setup Nix
|
||||
uses: cachix/install-nix-action@v31
|
||||
- name: Update flake inputs
|
||||
uses: mic92/update-flake-inputs@main
|
||||
with:
|
||||
github-token: ${{ steps.app-token.outputs.token }}
|
||||
auto-merge: true
|
||||
34
.github/workflows/update-flake-lock.yml
vendored
34
.github/workflows/update-flake-lock.yml
vendored
|
|
@ -1,34 +0,0 @@
|
|||
name: update-flake-lock
|
||||
on:
|
||||
workflow_dispatch: # allows manual triggering
|
||||
schedule:
|
||||
- cron: "0 0 * * 1,4" # Run twice a week
|
||||
permissions:
|
||||
pull-requests: write
|
||||
contents: write
|
||||
jobs:
|
||||
lockfile:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v31
|
||||
with:
|
||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions/create-github-app-token@v2
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ vars.CI_APP_ID }}
|
||||
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}
|
||||
- name: Update flake.lock
|
||||
uses: DeterminateSystems/update-flake-lock@v27
|
||||
with:
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
pr-body: |
|
||||
Automated changes by the update-flake-lock
|
||||
```
|
||||
{{ env.GIT_COMMIT_MESSAGE }}
|
||||
```
|
||||
pr-labels: | # Labels to be set on the PR
|
||||
auto-merge
|
||||
Loading…
Add table
Add a link
Reference in a new issue