-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
385a2a0
commit d9592f4
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,12 @@ jobs: | |
echo "Timestamp: ${{ steps.previoustag.outputs.timestamp }}" | ||
test -n "${{ steps.previoustag.outputs.tag }}" | ||
test -n "${{ steps.previoustag.outputs.timestamp }}" | ||
- name: Assert we got the tag with the expected prefix | ||
uses: therussiankid92/gat@v1 | ||
with: | ||
assertion: should.equal | ||
expected: v1.0.0 | ||
actual: ${{ steps.previoustag.outputs.tag }} | ||
- name: Add tag with prefix | ||
run: | | ||
git tag tag-with-prefix-v1.0.0 | ||
|
@@ -44,6 +50,12 @@ jobs: | |
uses: JesseTG/[email protected] | ||
with: | ||
path: .git/refs/tags | ||
- name: Assert we got the tag with the expected prefix | ||
uses: therussiankid92/gat@v1 | ||
with: | ||
assertion: should.equal | ||
expected: v1.0.0 | ||
actual: ${{ steps.previoustagwithprefix.outputs.tag }} | ||
- name: 'Get Previous tag with fallback' | ||
id: previoustagwithfallback | ||
uses: ./ | ||
|
@@ -54,3 +66,9 @@ jobs: | |
echo "Timestamp: ${{ steps.previoustagwithfallback.outputs.timestamp }}" | ||
test -n "${{ steps.previoustagwithfallback.outputs.tag }}" | ||
test -n "${{ steps.previoustagwithfallback.outputs.timestamp }}" | ||
- name: Assert we got the fallback | ||
uses: therussiankid92/gat@v1 | ||
with: | ||
assertion: should.equal | ||
expected: v1.0.0 | ||
actual: ${{ steps.previoustagwithfallback.outputs.tag }} |