adyya-flake/.forgejo/workflows/flake-update.yaml
Ittihadyya 1bf6933d71
All checks were successful
/ Check formatting (push) Successful in 1m24s
added own cache to substituters.
2024-11-26 16:19:54 +02:00

37 lines
No EOL
1.4 KiB
YAML

on:
#push: # currently disabled as it is not working properly with forgejo. if i do feel like it is necessary i will write an action from scratch, otherwise, i will just keep on doing it manually -e
# branches:
# - trunk
#schedule:
# - cron: '0 2 * * *'
jobs:
flake-update:
name: "Update .lock file"
steps:
- name: Checkout repository
uses: https://git.collective-conciousness.monster/Ittihadyya/checkout@v4
- name: Install Nix
uses: https://git.collective-conciousness.monster/Ittihadyya/nix-actions/install@main
with:
install-url: "https://nixos.org/nix/install"
- name: Update flake.lock
id: update
uses: https://git.collective-conciousness.monster/Ittihadyya/update-flake-lock@v24
with:
commit-msg: "Update flake.lock"
pr-title: "Update flake.lock"
pr-body: |
```
{{ env.GIT_COMMIT_MESSAGE }}
```
this is an automated action
pr-labels: |
dependencies
automated
- name: Checkout CI branch
run: git checkout update_flake_lock_action
if: ${{ steps.update.outputs.pull-request-number }}
- name: Force push changes to CI branch
run: git push origin update_flake_lock_action --force
if: ${{ steps.update.outputs.pull-request-number }}