From 422f07f01d162ff6fa461dc9e1ae16a100dffd93 Mon Sep 17 00:00:00 2001 From: Vandita2020 Date: Mon, 19 Aug 2024 10:17:12 -0700 Subject: [PATCH] Correcting changes in Git Release --- .github/workflows/create_update_release.yaml | 24 ++++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/create_update_release.yaml b/.github/workflows/create_update_release.yaml index ad8153047..7505913f8 100644 --- a/.github/workflows/create_update_release.yaml +++ b/.github/workflows/create_update_release.yaml @@ -4,6 +4,7 @@ on: push: branches: - main + jobs: get-release: runs-on: ubuntu-latest @@ -61,14 +62,14 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | for file in temp/*.zip; do - gh release upload v1.0.0 "$file" --clobber - echo "Uploaded $file, waiting to avoid rate limits..." - sleep 3 + if [ -f "$file" ]; then + gh release upload v1.0.0 "$file" --clobber + echo "Uploaded $file, waiting to avoid rate limits..." + sleep 3 + else + echo "File $file not found" + fi done - - - name: clean up - run: | - rm -r temp update-release: needs: get-release @@ -132,11 +133,4 @@ jobs: else echo "Archive $archive not found" fi - done < changed_folders.txt - - - name: Clean up - if: (needs.get-release.outputs.latest_release != '') && ( steps. ) - run: | - rm -r temp_archives - rm changed_folders.txt - rm changed_files.txt \ No newline at end of file + done < changed_folders.txt \ No newline at end of file