CI: build container when the version is a clean git tag 12
Some checks failed
/ build (push) Failing after 21s

This commit is contained in:
phil 2024-11-03 18:50:39 +01:00
parent 7e38cf9b46
commit cff2d0f5eb

View file

@ -22,16 +22,18 @@ jobs:
- name: Check if the container should be built
id: builder
run: echo "run=toJSON(${{ inputs.build || !contains(steps.version.outputs.version, '-')) }}" >> $GITHUB_OUTPUT
env:
RUN: toJSON(${{ inputs.build || !contains(steps.version.outputs.version, '-')) }}
run: |
echo "run=$RUN" >> $GITHUB_OUTPUT
echo "Run build: $RUN"
- name: Check
env:
VERSION: ${{ steps.version.outputs.version }}
BUILD: ${{ fromJSON(steps.builder.outputs.run)}}
RUN: ${{ fromJSON(steps.builder.outputs.run)}}
run: |
echo "version $VERSION"
echo "Build"
echo "$BUILD"
echo "Version $VERSION, run the build: $RUN"
- uses: pnpm/action-setup@v4
name: Install pnpm