1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-09-30 18:42:05 +00:00

fix(ci): Use github env namespace as forgejo is still unsupported

This commit is contained in:
Shuroii 2025-09-18 09:48:29 +02:00 committed by Jade Ellis
parent 458811f241
commit 7a56a2462c

View file

@ -30,9 +30,9 @@ jobs:
- name: Detect changed files
id: changes
run: |
git fetch origin ${{ forgejo.base_ref }} --depth=1 || true
if [ -n "${{ forgejo.event.pull_request.base.sha }}" ]; then
base=${{ forgejo.event.pull_request.base.sha }}
git fetch origin ${{ github.base_ref }} --depth=1 || true
if [ -n "${{ github.event.pull_request.base.sha }}" ]; then
base=${{ github.event.pull_request.base.sha }}
else
base=$(git rev-parse HEAD~1)
fi
@ -97,7 +97,7 @@ jobs:
git config user.email "renovate@mail.ellis.link"
git config user.name "renovate"
REF="${{ forgejo.head_ref }}"
REF="${{ github.head_ref }}"
git fetch origin "$REF"
git checkout "$REF"