Skip to content

Commit 747cd0a

Browse files
committed
fix: docker pull
1 parent 2296897 commit 747cd0a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
## [1.1.4] - 2023-03-10
10+
### Fixed
11+
- Correctly validate if docker pull was successful
12+
913
## [1.1.3] - 2023-03-10
1014
### Added
1115
- Added `.github/actions/github` composite action to infer GitHub action repository and ref from GitHub action path

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ runs:
5050
IMAGE: ${{ inputs.image || inputs.repository }}
5151
TAG: ${{ inputs.tag || inputs.ref }}
5252
DOCKER_REGISTRY_URL: ${{ inputs.docker-registry-url }}
53-
run: echo "exit=$(docker pull ${DOCKER_REGISTRY_URL#http*://}/$IMAGE:$TAG; echo $?)" >> $GITHUB_OUTPUT
53+
run: echo "image=$(docker pull ${DOCKER_REGISTRY_URL#http*://}/$IMAGE:$TAG -q || true)" >> $GITHUB_OUTPUT
5454
shell: bash
55-
- if: steps.pull.outputs.exit == 1
55+
- if: steps.pull.outputs.image == ''
5656
env:
5757
REPOSITORY: ${{ inputs.repository }}
5858
REF: ${{ inputs.ref }}

0 commit comments

Comments
 (0)