branch name fixed.

This commit is contained in:
AirryCo
2025-03-18 18:13:19 +08:00
parent 568b775446
commit 860268fb9c
4 changed files with 13 additions and 13 deletions

View File

@@ -35,7 +35,7 @@ jobs:
- name: Get Latest Commit From SPT
id: get-latest-commit
run: |
branch_name=$(git ls-remote --heads https://github.com/sp-tarkov/server.git | grep -o 'refs/heads/3.11.0-dev' | sed 's|refs/heads/||' | head -n 1)
branch_name=$(git ls-remote --heads https://github.com/sp-tarkov/server.git | grep -o 'refs/heads/3.11.x-dev' | sed 's|refs/heads/||' | head -n 1)
SPT_SERVER_LATEST_COMMIT_HASH=$(git ls-remote ${{ env.SERVER_URL }}/${{ env.REPOSITORY_SPT_SERVER }}.git refs/heads/$branch_name | awk '{print $1}')
SPT_SERVER_LATEST_COMMIT_HASH=${SPT_SERVER_LATEST_COMMIT_HASH:0:8}
echo "👽 NIGHTLY_BRANCH_SPT = $branch_name"

View File

@@ -9,7 +9,7 @@ env:
SERVER_URL: https://dev.sp-tarkov.com
REPOSITORY_SERVER: SPT/Server
REPOSITORY_SERVER_MEDUSA: medusa/spt-server
NIGHTLY_BRANCH: 3.10.0-DEV
NIGHTLY_BRANCH: 3.11.x-DEV
jobs:
prepare:

View File

@@ -455,7 +455,7 @@ jobs:
- name: Download Fika-Server
run: |
wget https://github.com/project-fika/Fika-Server/releases/download/${{ needs.prepare.outputs.TARGET_TAG_FIKA }}/fika-server.zip
wget https://github.com/project-fika/Fika-Server/releases/download/${{ needs.prepare.outputs.TARGET_TAG_FIKA }}/fika-server-$(echo ${{ needs.prepare.outputs.TARGET_TAG_FIKA }} | cut -c2-).zip
- name: Compress Releases
id: compress-release

View File

@@ -125,7 +125,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.11.1
node-version: 22.12.0
- name: Runner Debug Information
id: debug-info
@@ -200,7 +200,7 @@ jobs:
# docker
- name: Extract metadata for Docker with release version
if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BEM') }}
if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}
id: meta
uses: docker/metadata-action@v5
with:
@@ -213,7 +213,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}},value=${{ needs.prepare.outputs.TARGET_TAG }}
type=raw,value=latest
- name: Extract metadata for Docker with release version and fika built-in
if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BEM') }}
if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}
id: meta-fika
uses: docker/metadata-action@v5
with:
@@ -226,7 +226,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}}-fika,value=${{ needs.prepare.outputs.TARGET_TAG }}
type=raw,value=latest-fika
- name: Extract metadata for Docker with bem version
if: ${{ contains(needs.prepare.outputs.TARGET_TAG, 'BEM') }}
if: ${{ contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}
id: meta-bem
uses: docker/metadata-action@v5
with:
@@ -238,7 +238,7 @@ jobs:
type=semver,pattern={{version}},value=${{ needs.prepare.outputs.TARGET_TAG }}
type=semver,pattern={{major}}.{{minor}},value=${{ needs.prepare.outputs.TARGET_TAG }}
- name: Extract metadata for Docker with bem version and fika built-in
if: ${{ contains(needs.prepare.outputs.TARGET_TAG, 'BEM') }}
if: ${{ contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}
id: meta-bem-fika
uses: docker/metadata-action@v5
with:
@@ -277,7 +277,7 @@ jobs:
password: ${{ secrets.ALIYUN_REGISTRY_TOKEN }}
- name: Build and Push For Release With Fika
if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BEM') }}
if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}
uses: docker/build-push-action@v6
with:
context: ./docker
@@ -291,7 +291,7 @@ jobs:
org.opencontainers.image.revision=${{ needs.build-server-linux.outputs.LINUX_COMMIT_ID_WHOLE }}
platforms: linux/amd64,linux/arm64
- name: Build and Push For Release
if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BEM') }}
if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}
uses: docker/build-push-action@v6
with:
context: ./docker
@@ -306,7 +306,7 @@ jobs:
platforms: linux/amd64,linux/arm64
- name: Build and Push For BEM With Fika
if: ${{ contains(needs.prepare.outputs.TARGET_TAG, 'BEM') }}
if: ${{ contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}
uses: docker/build-push-action@v6
with:
context: ./docker
@@ -320,7 +320,7 @@ jobs:
org.opencontainers.image.revision=${{ needs.build-server-linux.outputs.LINUX_COMMIT_ID_WHOLE }}
platforms: linux/amd64,linux/arm64
- name: Build and Push For BEM
if: ${{ contains(needs.prepare.outputs.TARGET_TAG, 'BEM') }}
if: ${{ contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}
uses: docker/build-push-action@v6
with:
context: ./docker
@@ -455,7 +455,7 @@ jobs:
- name: Download Fika-Server
run: |
wget https://github.com/project-fika/Fika-Server/releases/download/${{ needs.prepare.outputs.TARGET_TAG_FIKA }}/fika-server.zip
wget https://github.com/project-fika/Fika-Server/releases/download/${{ needs.prepare.outputs.TARGET_TAG_FIKA }}/fika-server-$(echo ${{ needs.prepare.outputs.TARGET_TAG_FIKA }} | cut -c2-).zip
- name: Compress Releases
id: compress-release