Skip to content

Commit

Permalink
fix(test): test
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudmanson committed Sep 6, 2023
1 parent b673e80 commit 726cf94
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/gh-release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,6 @@ jobs:
CURRENT_VERSIONS=${CURRENT_VERSIONS%,} # Remove trailing comma
echo "CURRENT_VERSIONS=${CURRENT_VERSIONS}" >> $GITHUB_ENV
- name: Tag Check
id: tag_check
run: |
for version in $(echo $CURRENT_VERSIONS | tr ',' ' '); do
GET_API_URL="https://api.github.com/repos/${GITHUB_REPOSITORY}/git/ref/tags/v${version}"
http_status_code=$(curl -LI $GET_API_URL -o /dev/null -w '%{http_code}\n' -s \
-H "Authorization: token ${GITHUB_TOKEN}")
if [ "$http_status_code" -ne "404" ] ; then
echo "::set-output name=exists_tag::true"
else
echo "::set-output name=exists_tag::false"
fi
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Git Tags
if: steps.tag_check.outputs.exists_tag == 'true'
run: |
for version in $(echo $CURRENT_VERSIONS | tr ',' ' '); do
echo $version
done
- name: Run Version Check and Tag for Each Version
run: |
for version in $(echo $CURRENT_VERSIONS | tr ',' ' '); do
Expand Down

0 comments on commit 726cf94

Please sign in to comment.