Skip to content

Commit 9d17d21

Browse files
authored
docs: trigger output (#53)
1 parent a6ace6f commit 9d17d21

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,29 @@ jobs:
196196

197197
# Output
198198

199-
The build will return image digests as output.
199+
Return an image digest as output. This applies to builds or retagged images.
200200

201201
```yaml
202202
- id: meaningful_id_name
203203
uses: bcgov-nr/action-builder-ghcr@vX.Y.Z
204204
...
205205
206-
- id: deploy_with_digest
207-
name: Deploy with digest
208-
with:
209-
digest: ${{ steps.meaningful_id_name.outputs.digest }}
206+
- name: Echo digest
207+
run: |
208+
echo "Image digest: ${{ steps.meaningful_id_name.outputs.digest }}"
209+
...
210+
```
211+
212+
Has an image been built? [true|false]
213+
214+
```yaml
215+
- id: meaningful_id_name
216+
uses: bcgov-nr/action-builder-ghcr@vX.Y.Z
217+
...
218+
219+
- name: Echo build trigger
220+
run: |
221+
echo "Trigger result: ${{ steps.meaningful_id_name.outputs.triggered }}"
210222
...
211223
```
212224

0 commit comments

Comments
 (0)