Skip to content

Commit ab55247

Browse files
authored
chore(ci): workflow results jobs (#1833)
1 parent 3b3339b commit ab55247

4 files changed

Lines changed: 23 additions & 14 deletions

File tree

.github/workflows/.deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ on:
5959

6060
env:
6161
repo_release: ${{ github.event.repository.name }}-${{ inputs.release }}
62-
package_tag: ${{ inputs.tag }}
6362

6463
jobs:
6564
deploys:
@@ -93,12 +92,12 @@ jobs:
9392
fi
9493
# Deploy Helm Chart
9594
helm dependency update
96-
helm package --app-version="${{ env.package_tag }}" --version=${{ inputs.tag }} .
95+
helm package --app-version="${{ inputs.tag }}" --version=${{ inputs.tag }} .
9796
9897
helm upgrade \
9998
--set global.autoscaling=${{ inputs.autoscaling }} \
10099
--set-string global.repository=${{ github.repository }} \
101-
--set-string global.tag=${{ env.package_tag }} \
100+
--set-string global.tag=${{ inputs.tag }} \
102101
${{ inputs.params }} \
103102
--install --wait --atomic ${{ env.repo_release }} \
104103
--timeout ${{ inputs.timeout-minutes }}m \

.github/workflows/analysis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ jobs:
7777
trivy:
7878
name: Trivy Security Scan
7979
if: ${{ ! github.event.pull_request.draft }}
80-
needs: [codeql, tests]
8180
runs-on: ubuntu-22.04
8281
timeout-minutes: 1
8382
steps:
@@ -96,3 +95,10 @@ jobs:
9695
uses: github/codeql-action/upload-sarif@v3
9796
with:
9897
sarif_file: "trivy-results.sarif"
98+
99+
results:
100+
name: Analysis Results
101+
needs: [tests, codeql, trivy]
102+
runs-on: ubuntu-22.04
103+
steps:
104+
- run: echo "Workflow completed successfully!"

.github/workflows/pr-open.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,9 @@ jobs:
4242
tag: ${{ github.event.number }}
4343
release: ${{ github.event.number }}
4444

45-
validate:
46-
name: Validate
45+
results:
46+
name: PR Results
4747
needs: [deploys]
48-
if: always() && (!cancelled()) && (!failure())
49-
uses: bcgov/quickstart-openshift-helpers/.github/workflows/.pr-validate.yml@v0.3.0
50-
with:
51-
markdown_links: |
52-
- [Frontend](https://${{ github.event.repository.name }}-${{ github.event.number }}-frontend.apps.silver.devops.gov.bc.ca)
53-
- [Backend](https://${{ github.event.repository.name }}-${{ github.event.number }}-frontend.apps.silver.devops.gov.bc.ca/api)
48+
runs-on: ubuntu-22.04
49+
steps:
50+
- run: echo "Workflow completed successfully!"
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: PR Edit
1+
name: PR Validate
22

33
on:
44
pull_request:
5-
types: [edited]
5+
types: [edited, opened, synchronize, reopened]
66

77
concurrency:
88
group: ${{ github.workflow }}-edit-${{ github.event.number }}
@@ -16,3 +16,10 @@ jobs:
1616
markdown_links: |
1717
- [Frontend](https://${{ github.event.repository.name }}-${{ github.event.number }}-frontend.apps.silver.devops.gov.bc.ca)
1818
- [Backend](https://${{ github.event.repository.name }}-${{ github.event.number }}-frontend.apps.silver.devops.gov.bc.ca/api)
19+
20+
results:
21+
name: Validate Results
22+
needs: [validate]
23+
runs-on: ubuntu-22.04
24+
steps:
25+
- run: echo "Workflow completed successfully!"

0 commit comments

Comments
 (0)