-
Notifications
You must be signed in to change notification settings - Fork 6
Fixed if condition to run also on skipped approval #714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -40,6 +40,7 @@ jobs: | |||||
| run: echo "This job has been approved!" | ||||||
| build: | ||||||
| name: Build | ||||||
| if: always() && (needs.requires-approval.result == 'success' || needs.requires-approval.result == 'skipped') | ||||||
| needs: requires-approval | ||||||
| runs-on: ubuntu-latest | ||||||
| strategy: | ||||||
|
|
@@ -60,6 +61,7 @@ jobs: | |||||
|
|
||||||
| integration-tests: | ||||||
| name: Integration Tests (Java ${{ matrix.java-version }}) | ||||||
| if: always() && (needs.requires-approval.result == 'success' || needs.requires-approval.result == 'skipped') | ||||||
| runs-on: ubuntu-latest | ||||||
| needs: build | ||||||
| strategy: | ||||||
|
|
@@ -76,6 +78,7 @@ jobs: | |||||
|
|
||||||
| sonarqube-scan: | ||||||
| name: SonarQube Scan | ||||||
| if: always() && (needs.requires-approval.result == 'success' || needs.requires-approval.result == 'skipped') | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Logic Error: Incorrect dependency check for The
Suggested change
Double-check suggestion before committing. Edit this comment for amendments. Please provide feedback on the review comment by checking the appropriate box:
|
||||||
| runs-on: ubuntu-latest | ||||||
| needs: build | ||||||
| steps: | ||||||
|
|
@@ -91,6 +94,7 @@ jobs: | |||||
|
|
||||||
| scan: | ||||||
| name: Blackduck Scan | ||||||
| if: always() && (needs.requires-approval.result == 'success' || needs.requires-approval.result == 'skipped') | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Logic Error: Incorrect dependency check for The
Suggested change
Double-check suggestion before committing. Edit this comment for amendments. Please provide feedback on the review comment by checking the appropriate box:
|
||||||
| runs-on: ubuntu-latest | ||||||
| needs: build | ||||||
| timeout-minutes: 15 | ||||||
|
|
@@ -107,6 +111,7 @@ jobs: | |||||
|
|
||||||
| deploy-snapshot: | ||||||
| name: Deploy snapshot to Artifactory | ||||||
| if: always() && (needs.requires-approval.result == 'success' || needs.requires-approval.result == 'skipped') | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Logic Error: Incorrect dependency check for The
Suggested change
Double-check suggestion before committing. Edit this comment for amendments. Please provide feedback on the review comment by checking the appropriate box:
|
||||||
| runs-on: ubuntu-latest | ||||||
| needs: build | ||||||
| steps: | ||||||
|
|
@@ -155,4 +160,4 @@ jobs: | |||||
| env: | ||||||
| DEPLOYMENT_USER: ${{ env.DEPLOYMENT_USER }} | ||||||
| DEPLOYMENT_PASS: ${{ env.DEPLOYMENT_PASS }} | ||||||
| shell: bash | ||||||
| shell: bash | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic Error: Incorrect dependency check for
integration-testsjobThe
integration-testsjob depends onbuild(line 66), notrequires-approval. It should checkneeds.build.resultinstead ofneeds.requires-approval.result. With the current condition, this job will run even if thebuildjob fails, as long as approval succeeded/skipped.Double-check suggestion before committing. Edit this comment for amendments.
Please provide feedback on the review comment by checking the appropriate box: