Closed CodeVachon closed 5 months ago
When using an expression for the addLatest input, a trueful value is ignored.
addLatest
name: Build on: release: types: [published] jobs: Build: name: build docker image runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: mr-smithers-excellent/docker-build-push@v6.3 name: Build & Push App Docker Image with: image: app registry: ghcr.io dockerfile: Dockerfile addLatest: ${{ !contains(github.ref_name, 'RC') }}
With the above workflow:
github.ref_name
0.0.0-RC1
latest
0.0.0
@CodeVachon - thanks for bringing up this issue. Will get this PR reviewed and tested ASAP!
When using an expression for the
addLatest
input, a trueful value is ignored.Expected
With the above workflow:
github.ref_name
is0.0.0-RC1
thelatest
tag SHOULD NOT be addedgithub.ref_name
is0.0.0
thelatest
tag SHOULD be addedActual
With the above workflow:
github.ref_name
is0.0.0-RC1
thelatest
tag IS NOT addedgithub.ref_name
is0.0.0
thelatest
tag IS NOT added