forgjo-actions: add manual trigger to pipeline
This commit is contained in:
parent
317b0bbb73
commit
5b7adc4e46
1 changed files with 4 additions and 3 deletions
|
|
@ -3,6 +3,7 @@ on:
|
|||
# branches: [main]
|
||||
schedule:
|
||||
- cron: 0 */6 * * *
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
update:
|
||||
runs-on: native
|
||||
|
|
@ -15,18 +16,18 @@ jobs:
|
|||
# It bypasses branch protection rules that block the default GITHUB_TOKEN.
|
||||
token: ${{ secrets.PUSH_TOKEN }}
|
||||
- name: Update flake
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
|
||||
run: |
|
||||
cd ${{ env.FORGEJO_WORKSPACE }}
|
||||
nix flake update
|
||||
- name: Commit new Flake.lock
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
|
||||
run: |
|
||||
git config --local user.email "forgejo-actions[bot]@christophhollizeck.dev"
|
||||
git config --local user.name "forgejo-actions[bot]"
|
||||
git commit -a -m "chore: update flake"
|
||||
- name: Push changes
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
|
||||
run: git push
|
||||
|
||||
# - name: Build Loptland
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue