Skip to content

Commit 579df8e

Browse files
authored
Update build.yaml (#40)
1 parent 1e43bde commit 579df8e

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/build.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
#release:
1414
# types: [published]
1515

16+
env:
17+
dev: ${{ inputs.dev || github.event.release.prerelease }}
18+
1619
jobs:
1720
build:
1821
name: "Build"
@@ -34,9 +37,10 @@ jobs:
3437
- name: "Debug"
3538
continue-on-error: true
3639
run: |
37-
echo "inputs.dev: ${{ inputs.dev }}"
38-
echo "inputs.tags: ${{ inputs.tags }}"
3940
echo "github.ref_name: ${{ github.ref_name }}"
41+
echo "inputs.tags: ${{ inputs.tags }}"
42+
echo "inputs.dev: ${{ inputs.dev }}"
43+
echo "env.dev: ${{ env.dev }}"
4044
4145
- name: "Checkout"
4246
uses: actions/checkout@v5
@@ -54,7 +58,7 @@ jobs:
5458
platforms: linux/amd64,linux/arm64
5559

5660
- name: "Update Version Tags"
57-
if: ${{ inputs.dev != true }}
61+
if: ${{ !env.dev }}
5862
id: version
5963
uses: cssnr/update-version-tags-action@v1
6064
with:
@@ -66,7 +70,7 @@ jobs:
6670
continue-on-error: true
6771
run: |
6872
echo "github.ref_name: ${{ github.ref_name }}"
69-
echo "tags1: ${{ inputs.dev == true && 'dev' || '' }}"
73+
echo "tags1: ${{ env.dev && 'dev' || '' }}"
7074
echo "tags2: ${{ steps.version.outputs.tags }}"
7175
echo "tags3: ${{ inputs.tags }}"
7276
@@ -76,7 +80,7 @@ jobs:
7680
with:
7781
images: "ghcr.io/${{ github.repository }}"
7882
tags: |
79-
${{ inputs.dev == true && 'dev' || '' }}
83+
${{ env.dev && 'dev' || '' }}
8084
${{ steps.version.outputs.tags }}
8185
${{ inputs.tags }}
8286

0 commit comments

Comments
 (0)