Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit b2a37ef

Browse files
committed
add tag download in to workflow
1 parent 210dff6 commit b2a37ef

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ios-tag-release-update-asana.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,24 @@ jobs:
8181

8282
steps:
8383

84+
- name: Download tag artifact
85+
id: download-tag
86+
# Only look for the tag artifact when the tag input is empty
87+
if: github.event.inputs.tag == null || github.event.inputs.tag == ''
88+
continue-on-error: true
89+
uses: actions/download-artifact@v4
90+
with:
91+
name: tag
92+
path: .github
93+
94+
- name: Set tag variable
95+
run: |
96+
if [[ "${{ steps.download-tag.outcome }}" == 'success' ]]; then
97+
echo "TAG=$(<.github/tag)" >> $GITHUB_ENV
98+
else
99+
echo "TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
100+
fi
101+
84102
- name: Verify the tag
85103
id: verify-tag
86104
run: |

0 commit comments

Comments
 (0)