Compare commits
No commits in common. "c14b416722abe07b0365dce03f25ebda1ff913de" and "9acdc4000327c4bc5f3fa7aef8cdd6b05df02bf8" have entirely different histories.
c14b416722
...
9acdc40003
1 changed files with 5 additions and 9 deletions
|
|
@ -3,7 +3,6 @@ on:
|
||||||
# branches: [main]
|
# branches: [main]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 */6 * * *
|
- cron: 0 */6 * * *
|
||||||
workflow_dispatch:
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update:
|
||||||
runs-on: native
|
runs-on: native
|
||||||
|
|
@ -12,22 +11,19 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: develop
|
ref: develop
|
||||||
# PUSH_TOKEN must be a PAT with write access to the repo.
|
|
||||||
# It bypasses branch protection rules that block the default GITHUB_TOKEN.
|
|
||||||
token: ${{ secrets.PUSH_TOKEN }}
|
|
||||||
- name: Update flake
|
- name: Update flake
|
||||||
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
|
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' || github.event_name == 'workflow_dispatch' }}
|
if: ${{ github.event_name == 'schedule' }}
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "forgejo-actions[bot]@christophhollizeck.dev"
|
git config --local user.email "christoph.hollizeck@hey.com"
|
||||||
git config --local user.name "forgejo-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' || github.event_name == 'workflow_dispatch' }}
|
if: ${{ github.event_name == 'schedule' }}
|
||||||
run: git push
|
run: git push
|
||||||
|
|
||||||
# - name: Build Loptland
|
# - name: Build Loptland
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue