Skip to content

Commit b525423

Browse files
authored
Fix env
1 parent d9dad57 commit b525423

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@ on:
1010
tags:
1111
- 'v*' # runs on push of semantic version tags (e.g., v1.2.3)
1212

13-
env:
14-
SLIMEVR_VERSION: ${{ env.SLIMEVR_VERSION != '' && env.SLIMEVR_VERSION || secrets.SLIMEVR_VERSION }}
15-
1613
jobs:
1714
build-and-push:
1815
runs-on: ubuntu-latest
1916
steps:
2017
# 1. Checkout the repository
2118
- name: Checkout repository
2219
uses: actions/checkout@v3
20+
21+
- name: Load .env file
22+
run: |
23+
SL_VER=$(grep -E '^SLIMEVR_VERSION=' .env | cut -d= -f2)
24+
echo "SLIMEVR_VERSION=$SL_VER" >> $GITHUB_ENV
2325
2426
# 2. Set up QEMU for multi-architecture builds
2527
- name: Set up QEMU

0 commit comments

Comments
 (0)