From 413e04f08e17d0a80acfd9cbd6216cdc089585be Mon Sep 17 00:00:00 2001 From: Masoud Amjadi Date: Tue, 5 Sep 2023 21:53:08 -0400 Subject: [PATCH] fix(test): test --- .github/workflows/gh-release-test.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/gh-release-test.yml b/.github/workflows/gh-release-test.yml index c089fb37c..5b85f2785 100644 --- a/.github/workflows/gh-release-test.yml +++ b/.github/workflows/gh-release-test.yml @@ -50,17 +50,14 @@ jobs: echo $version done - # - name: Create Release - # id: create_release - # if: steps.tag_check.outputs.exists_tag == 'true' - # uses: actions/create-release@v1 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # tag_name: v${{ env.CURRENT_VERSIONS }} - # # Copy Pull Request's title and body to Release Note - # release_name: ${{ github.event.pull_request.title }} - # body: | - # ${{ github.event.pull_request.body }} - # draft: false - # prerelease: false + - name: Run Version Check and Tag for Each Version + run: | + for version in $(echo $CURRENT_VERSIONS | tr ',' ' '); do + echo "Creating job for version $version..." + echo "::set-output name=version::$version" + done + + - name: Create Release + if: steps.set_versions.outcome == 'success' + run: | + echo "Running release job for individual tag ${{ steps.set_versions.outputs.version }}"