forgjo-actions: build on push
Some checks failed
/ update (push) Failing after 8m53s

This commit is contained in:
Christoph Hollizeck 2025-11-30 03:10:47 +01:00
parent fe34cf7d48
commit a55e34e508
Signed by: Daholli
GPG key ID: 249300664F2AF2C7

View file

@ -1,4 +1,6 @@
on: on:
push:
branches: [main]
schedule: schedule:
- cron: 0 */6 * * * - cron: 0 */6 * * *
jobs: jobs:
@ -8,15 +10,18 @@ jobs:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Update flake - name: Update flake
if: ${{ github.event_name == 'schedule' }}
run: | run: |
cd ${{ env.FORGEJO_WORKSPACE }} cd ${{ env.FORGEJO_WORKSPACE }}
nix flake update nix flake update
- name: Commit new Flake.lock - name: Commit new Flake.lock
if: ${{ github.event_name == 'schedule' }}
run: | run: |
git config --local user.email "christoph.hollizeck@hey.com" git config --local user.email "christoph.hollizeck@hey.com"
git config --local user.name "forgjo-actions[bot]" git config --local user.name "forgjo-actions[bot]"
git commit -a -m "chore: update flake" git commit -a -m "chore: update flake"
- name: Push changes - name: Push changes
if: ${{ github.event_name == 'schedule' }}
run: git push run: git push
- name: Build Loptland - name: Build Loptland