forgejo action

This commit is contained in:
Ingolf Wagner 2024-07-21 00:08:51 +02:00
parent da5af11569
commit 5f8c4791de
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -9,6 +9,8 @@ jobs:
runs-on: native runs-on: native
steps: steps:
- name: checkout repository - name: checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
@ -19,10 +21,11 @@ jobs:
git config --local user.email "action@git.ingolf-wagner.de" git config --local user.email "action@git.ingolf-wagner.de"
git config --local user.name "Forgejo Action" git config --local user.name "Forgejo Action"
- name: rebase with main branch # fixme: not working for some reason
run: | #- name: rebase with main branch
git fetch origin main # run: |
git rebase origin/main # git fetch origin main
# git rebase origin/main
- name: setup ssh - name: setup ssh
run: | run: |
@ -42,6 +45,8 @@ jobs:
- name: update nix flakes - name: update nix flakes
run: nix flake update run: nix flake update
# we need the ssh-agent here, otherwise git push would use the GITHUB_TOKEN
# which prevents other workflows to be triggered
- name: commit and push changes - name: commit and push changes
run: | run: |
git diff --quiet && \ git diff --quiet && \