Skip to content

Commit

Permalink
Fail on empty outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Sep 12, 2022
1 parent fa1f644 commit a23f9a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ jobs:
id: previoustag
uses: ./
- run: |
echo "${{ steps.previoustag.outputs.tag }}"
echo "Tag: ${{ steps.previoustag.outputs.tag }}"
echo "Timestamp: ${{ steps.previoustag.outputs.timestamp }}"
test -n "${{ steps.previoustag.outputs.tag }}"
test -n "${{ steps.previoustag.outputs.timestamp }}"
- name: Remove tags
uses: JesseTG/rm@v1.0.2
with:
Expand All @@ -34,4 +37,7 @@ jobs:
with:
fallback: v1.0.0
- run: |
echo "${{ steps.previoustagwithfallback.outputs.tag }}"
echo "Tag: ${{ steps.previoustagwithfallback.outputs.tag }}"
echo "Timestamp: ${{ steps.previoustagwithfallback.outputs.timestamp }}"
test -n "${{ steps.previoustagwithfallback.outputs.tag }}"
test -n "${{ steps.previoustagwithfallback.outputs.timestamp }}"
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ inputs:
outputs:
tag:
description: 'Latest tag'
timestamp:
description: 'Latest tag timestamp'
runs:
using: 'node12'
main: 'main.js'

0 comments on commit a23f9a0

Please sign in to comment.