From c8d9b7055632cded3bb1a1074680b9e23575605b Mon Sep 17 00:00:00 2001 From: Tony Josi Date: Fri, 3 Nov 2023 14:47:16 +0530 Subject: [PATCH] Update release script to add cleanup step (#1038) * Add cleanup step in release script * update comment --------- Co-authored-by: Monika Singh --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 80a9316ed..07c787e5e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -138,3 +138,15 @@ jobs: asset_path: ./FreeRTOS-Plus-TCP-${{ github.event.inputs.version_number }}.zip asset_name: FreeRTOS-Plus-TCP-${{ github.event.inputs.version_number }}.zip asset_content_type: application/zip + cleanup: + needs: + - create-release + name: Cleanup + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Delete branch created for Tag by SBOM generator + run: | + # Delete the branch created for Tag by SBOM generator + git push -u origin --delete refs/heads/${{ github.event.inputs.version_number }}