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/actions/checkout@v4 - name: Install Nix uses: https://git.collective-conciousness.monster/actions/nix-actions/install@main with: install-url: "https://nixos.org/nix/install" - name: Update flake.lock id: update uses: https://git.collective-conciousness.monster/actions/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 }}