ci: use the github context supported by the Forgejo runner
This commit is contained in:
parent
3200fc7b66
commit
4fd988d395
2 changed files with 6 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ on:
|
|||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: ci-${{ gitea.ref }}
|
||||
group: ci-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
|
|
@ -16,7 +16,7 @@ env:
|
|||
jobs:
|
||||
check:
|
||||
# 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
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ jobs:
|
|||
build:
|
||||
runs-on: self-hosted
|
||||
env:
|
||||
TAG: ${{ gitea.ref_name }}
|
||||
TAG: ${{ github.ref_name }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
|
@ -121,9 +121,9 @@ jobs:
|
|||
runs-on: self-hosted
|
||||
env:
|
||||
MIN_VERSION: ${{ vars.VNOX_MIN_VERSION }}
|
||||
TAG: ${{ gitea.ref_name }}
|
||||
SERVER_URL: ${{ gitea.server_url }}
|
||||
REPO: ${{ gitea.repository }}
|
||||
TAG: ${{ github.ref_name }}
|
||||
SERVER_URL: ${{ github.server_url }}
|
||||
REPO: ${{ github.repository }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue