From 656af9dc0de6ef70f84c7c6464a26e8776dbba18 Mon Sep 17 00:00:00 2001 From: cicdguy <26552821+cicdguy@users.noreply.github.com> Date: Wed, 24 Jan 2024 19:04:11 -0600 Subject: [PATCH] fix: Uploader --- .github/workflows/deploy.yaml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 9dc7471..79bcba2 100755 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -35,7 +35,7 @@ on: description: R Version required: true type: choice - default: "4.3.0" + default: "4.3.2" options: - "4.1.0" - "4.1.1" @@ -49,7 +49,7 @@ on: - "4.3.2" - "latest" latest_r_version: - description: R Version to be used as latest + description: "R Version to be aliased as the 'latest' tag" required: false type: string default: "4.3.2" @@ -67,7 +67,7 @@ on: - "3.18" - "devel" latest_bioc_version: - description: BioC version to be used as latest + description: "BioC Version to be aliased as the 'latest' tag" required: false type: string default: "3.18" @@ -83,6 +83,8 @@ on: release_tag: description: | Release tag to which SBOM generated for image should be attached. + Release tags follow the `YYYY.MM.DD` format. + This must be specified if you want to upload artifacts to the release. required: false default: "" @@ -160,7 +162,7 @@ jobs: docker-images: true - name: Checkout repository 💳 - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -169,7 +171,7 @@ jobs: install: true - name: Cache Docker layers ♻️ - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ needs.normalize-inputs.outputs.distribution }}-${{ needs.normalize-inputs.outputs.r_version }}-${{ needs.normalize-inputs.outputs.bioc_version }} @@ -263,8 +265,9 @@ jobs: output-file: "${{ steps.build_vars.outputs.SBOM_OUTPUT_FILENAME }}" artifact-name: "sbom.spdx" - - name: Upload image manifest release 🔼 + - name: Upload image manifest to release 🔼 uses: svenstaro/upload-release-action@v2 + if: "${{ needs.normalize-inputs.outputs.release_tag }} != ''" with: repo_token: ${{ secrets.REPO_GITHUB_TOKEN }} file: "manifest.json" @@ -272,8 +275,9 @@ jobs: tag: "${{ needs.normalize-inputs.outputs.release_tag }}" overwrite: true - - name: Upload R package list 🔼 + - name: Upload R package list to release 🔼 uses: svenstaro/upload-release-action@v2 + if: "${{ needs.normalize-inputs.outputs.release_tag }} != ''" with: repo_token: ${{ secrets.REPO_GITHUB_TOKEN }} file: "package_list.csv" @@ -283,6 +287,7 @@ jobs: - name: Upload SBOM to release 🔼 uses: svenstaro/upload-release-action@v2 + if: "${{ needs.normalize-inputs.outputs.release_tag }} != ''" with: repo_token: ${{ secrets.REPO_GITHUB_TOKEN }} file: "${{ steps.build_vars.outputs.SBOM_OUTPUT_FILENAME }}"