Skip to content

Commit f252c4d

Browse files
authored
docs: new and old digest outputs (#57)
1 parent ef2389c commit f252c4d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ jobs:
194194
195195
```
196196

197-
# Output
197+
# Outputs
198198

199-
Return an image digest as output. This applies to builds or retagged images.
199+
Returns digests for the new and previous images, if available. This applies to build and retags.
200200

201201
```yaml
202202
- id: meaningful_id_name
@@ -205,7 +205,8 @@ Return an image digest as output. This applies to builds or retagged images.
205205
206206
- name: Echo digest
207207
run: |
208-
echo "Image digest: ${{ steps.meaningful_id_name.outputs.digest }}"
208+
echo "Digest, new: ${{ steps.meaningful_id_name.outputs.digest }}"
209+
echo "Digest, old: ${{ steps.meaningful_id_name.outputs.digest_old }}"
209210
...
210211
```
211212

0 commit comments

Comments
 (0)