2024-04-22 13:29:11 +03:00
|
|
|
name: update-flake-lock-test
|
|
|
|
on:
|
|
|
|
workflow_dispatch: # allows manual triggering
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
|
|
|
|
|
|
|
|
jobs:
|
2024-05-28 12:41:43 +03:00
|
|
|
update-test-lock:
|
2024-04-22 13:29:11 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-05-28 12:28:06 +03:00
|
|
|
- name: Generate Github App Token
|
|
|
|
uses: navikt/github-app-token-generator@v1
|
|
|
|
id: github-app-token
|
|
|
|
with:
|
|
|
|
app-id: ${{ vars.NIXOS_ASIA_APP_ID }}
|
|
|
|
private-key: ${{ secrets.NIXOS_ASIA_PRIVATE_KEY }}
|
2024-04-22 13:29:11 +03:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Nix
|
|
|
|
uses: DeterminateSystems/nix-installer-action@main
|
|
|
|
- name: Update flake.lock
|
|
|
|
uses: DeterminateSystems/update-flake-lock@main
|
2024-05-28 12:28:06 +03:00
|
|
|
id: update-flake-lock
|
2024-04-22 13:29:11 +03:00
|
|
|
with:
|
|
|
|
commit-msg: "chore(test): Update flake.lock"
|
|
|
|
pr-title: "Update test/flake.lock"
|
2024-05-28 12:28:06 +03:00
|
|
|
pr-body: |
|
|
|
|
Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action.
|
|
|
|
|
|
|
|
```
|
|
|
|
{{ env.GIT_COMMIT_MESSAGE }}
|
|
|
|
```
|
2024-04-22 13:29:11 +03:00
|
|
|
pr-labels: |
|
|
|
|
automated
|
|
|
|
path-to-flake-dir: 'test'
|
2024-05-28 12:28:06 +03:00
|
|
|
branch: "update_flake_lock_test"
|
|
|
|
token: ${{ steps.github-app-token.outputs.token }}
|
2024-05-28 12:37:06 +03:00
|
|
|
- run: "gh pr merge --auto --rebase --delete-branch ${{ steps.update-flake-lock.outputs.pull-request-number }}"
|
2024-05-28 12:28:06 +03:00
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ github.token }}
|
|
|
|
|