Skip to content

Commit af37e9c

Browse files
committed
Compare env variable with string 'true' value
1 parent c27ab18 commit af37e9c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/docker-merge-tags.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ jobs:
4848
shell: bash
4949

5050
- name: Login to Registry 🔐
51-
if: env.PUSH_TO_REGISTRY
51+
if: env.PUSH_TO_REGISTRY == 'true'
5252
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
5353
with:
5454
registry: quay.io
5555
username: ${{ secrets.REGISTRY_USERNAME }}
5656
password: ${{ secrets.REGISTRY_TOKEN }}
5757

5858
- name: Merge tags for the images 🔀
59-
if: env.PUSH_TO_REGISTRY
59+
if: env.PUSH_TO_REGISTRY == 'true'
6060
run: python3 -m tagging.merge_tags --short-image-name ${{ inputs.image }} --tags-dir /tmp/jupyter/tags/
6161
shell: bash

.github/workflows/docker-tag-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
platform: ${{ inputs.platform }}
3939

4040
- name: Login to Registry 🔐
41-
if: env.PUSH_TO_REGISTRY
41+
if: env.PUSH_TO_REGISTRY == 'true'
4242
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
4343
with:
4444
registry: quay.io
@@ -54,6 +54,6 @@ jobs:
5454
run: python3 -m tagging.apply_tags --short-image-name ${{ inputs.image }} --tags-dir /tmp/jupyter/tags/ --platform ${{ inputs.platform }} --registry ${{ env.REGISTRY }} --owner ${{ env.OWNER }}
5555

5656
- name: Push Images to Registry 📤
57-
if: env.PUSH_TO_REGISTRY
57+
if: env.PUSH_TO_REGISTRY == 'true'
5858
run: docker push --all-tags ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ inputs.image }}
5959
shell: bash

.github/workflows/docker-wiki-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
shell: bash
4141

4242
- name: Push Uncyclo to GitHub 📤
43-
if: env.PUSH_TO_REGISTRY
43+
if: env.PUSH_TO_REGISTRY == 'true'
4444
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
4545
with:
4646
commit_message: "Automated wiki publish for ${{ github.sha }}"

0 commit comments

Comments
 (0)