Skip to content

Commit

Permalink
to run only verify
Browse files Browse the repository at this point in the history
  • Loading branch information
elchananarb committed Sep 12, 2024
1 parent 6e3dd7c commit 7bcd9f6
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
description: 'Channels to publish development releases'
required: false
type: string
only_verify:
description: 'Run only verify step'
required: false
default: 'false'
type: boolean
workflow_dispatch:
inputs:
tag:
Expand All @@ -29,6 +34,11 @@ on:
description: 'Channels to publish development releases'
required: false
type: string
only_verify:
description: 'Run only verify step'
required: false
default: 'false'
type: boolean

env:
CX_BASE_URI: ${{ secrets.CX_BASE_URI }}
Expand All @@ -43,7 +53,6 @@ env:
CX_NOT_MATCH_TEST_BRANCH: ${{ secrets.CX_NOT_MATCH_TEST_BRANCH }}
CX_NOT_MATCH_TEST_SCAN_ID: ${{ secrets.CX_NOT_MATCH_TEST_SCAN_ID }}


jobs:
verify:
runs-on: ubuntu-latest
Expand All @@ -67,8 +76,10 @@ jobs:
with:
name: verifier-report
path: build/reports/pluginVerifier

testIntegration:
needs: [ verify ]
if: ${{ inputs.only_verify == 'false' }}
runs-on: ubuntu-latest
steps:
# Check out current repository
Expand All @@ -94,13 +105,19 @@ jobs:
name: test-fails-report-integration
path: |
build/reports
deleteDevReleases:
needs: [ testIntegration ]
if: ${{ inputs.only_verify == 'false' }}
uses: Checkmarx/ast-jetbrains-plugin/.github/workflows/delete-dev-releases.yml@main
with:
tag: ${{ inputs.rchannels }}
secrets: inherit
if: inputs.rchannels

release:
needs: [ testIntegration ]
if: ${{ inputs.only_verify == 'false' }}
runs-on: ubuntu-latest
steps:
# Check out current repository
Expand Down Expand Up @@ -149,4 +166,4 @@ jobs:
./gradlew publishPlugin
else
./gradlew publishPlugin -Prchannels=${{ inputs.rchannels }}
fi
fi

0 comments on commit 7bcd9f6

Please sign in to comment.