From d3c702a895a112e7910a49953fb383be3d53ab22 Mon Sep 17 00:00:00 2001 From: "Jose R. Gonzalez" Date: Fri, 7 Jul 2023 15:16:29 -0500 Subject: [PATCH] Update action identifiers Signed-off-by: Jose R. Gonzalez --- .github/workflows/build.yaml | 2 +- .github/workflows/dev_release.yaml | 19 ++++++++++++++++--- .github/workflows/vulnerability.yaml | 5 ++--- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 29e245d1..117bfba1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,7 +6,7 @@ on: branches: [ main ] jobs: - build: + build-test-release: name: Build artifacts runs-on: ubuntu-latest diff --git a/.github/workflows/dev_release.yaml b/.github/workflows/dev_release.yaml index d14d2b58..8927057f 100644 --- a/.github/workflows/dev_release.yaml +++ b/.github/workflows/dev_release.yaml @@ -1,4 +1,10 @@ -name: Create dev release +name: Create Dev Release +# Delete the previous development release and recreate it +# with code based off of the main branch. +# +# This is done so that the openshift-tools-installer has a valid +# semantic version release to install. +# https://github.com/redhat-actions/openshift-tools-installer on: push: @@ -6,7 +12,7 @@ on: - main jobs: - build: + release: name: Create Dev Release runs-on: ubuntu-latest env: @@ -53,10 +59,17 @@ jobs: tag_name: ${{ env.DEV_RELEASE }} # tag name to delete env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # The next step seems to periodically create a draft release. + # We think this is because of a race condition. + # Force a wait after the previous release was deleted. + - name: Sleep and to buffer release recreation + id: sleep-after-delete-previous + run: sleep 8 - name: Create the release id: create_release - if: ${{ steps.delete-previous.outcome == 'success' }} + if: ${{ steps.delete-previous.outcome == 'success' && steps.sleep-after-delete-previous == 'success' }} uses: softprops/action-gh-release@v1 with: tag_name: ${{ env.DEV_RELEASE }} diff --git a/.github/workflows/vulnerability.yaml b/.github/workflows/vulnerability.yaml index 780342e6..1fc7984d 100644 --- a/.github/workflows/vulnerability.yaml +++ b/.github/workflows/vulnerability.yaml @@ -1,6 +1,5 @@ -name: CI +name: Run Security Scan -# Triggers the workflow on push or pull request events but only for the main branch on: push: branches: [main] @@ -8,7 +7,7 @@ on: branches: [main] jobs: - build-and-validate: + scan: runs-on: ubuntu-latest steps: