CI: build container when the version is a clean git tag 12
Some checks failed
/ build (push) Failing after 21s
Some checks failed
/ build (push) Failing after 21s
This commit is contained in:
parent
7e38cf9b46
commit
cff2d0f5eb
1 changed files with 7 additions and 5 deletions
|
@ -22,16 +22,18 @@ jobs:
|
||||||
|
|
||||||
- name: Check if the container should be built
|
- name: Check if the container should be built
|
||||||
id: builder
|
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
|
- name: Check
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.version.outputs.version }}
|
VERSION: ${{ steps.version.outputs.version }}
|
||||||
BUILD: ${{ fromJSON(steps.builder.outputs.run)}}
|
RUN: ${{ fromJSON(steps.builder.outputs.run)}}
|
||||||
run: |
|
run: |
|
||||||
echo "version $VERSION"
|
echo "Version $VERSION, run the build: $RUN"
|
||||||
echo "Build"
|
|
||||||
echo "$BUILD"
|
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue