ci: use the github context supported by the Forgejo runner
Some checks failed
ci / check (push) Failing after 1s
release / build (push) Failing after 11s
release / publish (push) Has been skipped

This commit is contained in:
Loki 2026-11-01 17:17:52 +01:00
parent 3200fc7b66
commit 4fd988d395
Signed by: boba
GPG key ID: 253067914055423B
2 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,7 @@ on:
pull_request: pull_request:
concurrency: concurrency:
group: ci-${{ gitea.ref }} group: ci-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
env: env:
@ -16,7 +16,7 @@ env:
jobs: jobs:
check: check:
# The runner is a shared host, so never run code from forks on it. # The runner is a shared host, so never run code from forks on it.
if: ${{ gitea.event_name != 'pull_request' || gitea.event.pull_request.head.repo.full_name == gitea.repository }} if: ${{ github.event_name != 'pull_request' || gitea.event.pull_request.head.repo.full_name == gitea.repository }}
runs-on: self-hosted runs-on: self-hosted
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View file

@ -14,7 +14,7 @@ jobs:
build: build:
runs-on: self-hosted runs-on: self-hosted
env: env:
TAG: ${{ gitea.ref_name }} TAG: ${{ github.ref_name }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -121,9 +121,9 @@ jobs:
runs-on: self-hosted runs-on: self-hosted
env: env:
MIN_VERSION: ${{ vars.VNOX_MIN_VERSION }} MIN_VERSION: ${{ vars.VNOX_MIN_VERSION }}
TAG: ${{ gitea.ref_name }} TAG: ${{ github.ref_name }}
SERVER_URL: ${{ gitea.server_url }} SERVER_URL: ${{ github.server_url }}
REPO: ${{ gitea.repository }} REPO: ${{ github.repository }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4