Skip to content

Commit e9a85ec

Browse files
committed
CI - Add SHAs when reporting status in issue
1 parent 7d1cde7 commit e9a85ec

File tree

6 files changed

+49
-6
lines changed

6 files changed

+49
-6
lines changed

.github/workflows/ci-istio.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
cache:
1414
name: Build and save artifacts
1515
runs-on: ubuntu-latest
16-
if: "github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'"
16+
if: github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'
1717
steps:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-java@v4
@@ -36,14 +36,18 @@ jobs:
3636
name: Istio + Kubernetes Integration Tests
3737
needs: cache
3838
runs-on: ubuntu-latest
39-
if: "github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'"
39+
if: github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'
4040
strategy:
4141
fail-fast: false
4242
matrix:
4343
kubernetes: [v1.20.1]
4444
steps:
4545
- name: Checkout
4646
uses: actions/checkout@v4
47+
- name: Get SHA
48+
id: quarkus-sha
49+
run: |
50+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
4751
- uses: actions/setup-java@v4
4852
with:
4953
distribution: 'temurin'
@@ -91,3 +95,5 @@ jobs:
9195
status: ${{ job.status }}
9296
issue-repository: ${{ github.repository }}
9397
issue-number: 29536
98+
quarkus-sha: ${{ steps.quarkus-sha.outputs.sha }}
99+
project-sha: ${{ steps.quarkus-sha.outputs.sha }}

.github/workflows/ci-kubernetes.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,18 @@ jobs:
3636
name: Kubernetes Integration Tests
3737
needs: cache
3838
runs-on: ubuntu-latest
39-
if: "github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'"
39+
if: github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'
4040
strategy:
4141
fail-fast: false
4242
matrix:
4343
kubernetes: [v1.33.2]
4444
steps:
4545
- name: Checkout
4646
uses: actions/checkout@v4
47+
- name: Get SHA
48+
id: quarkus-sha
49+
run: |
50+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
4751
- uses: actions/setup-java@v4
4852
with:
4953
distribution: 'temurin'
@@ -83,12 +87,15 @@ jobs:
8387
status: ${{ job.status }}
8488
issue-repository: ${{ github.repository }}
8589
issue-number: 26581
90+
quarkus-sha: ${{ steps.quarkus-sha.outputs.sha }}
91+
project-sha: ${{ steps.quarkus-sha.outputs.sha }}
92+
8693

8794
knative:
8895
name: Knative Integration Tests
8996
needs: cache
9097
runs-on: ubuntu-latest
91-
if: "github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'"
98+
if: github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'
9299
strategy:
93100
fail-fast: false
94101
matrix:
@@ -97,6 +104,10 @@ jobs:
97104
steps:
98105
- name: Checkout
99106
uses: actions/checkout@v4
107+
- name: Get SHA
108+
id: quarkus-sha
109+
run: |
110+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
100111
- uses: actions/setup-java@v4
101112
with:
102113
distribution: 'temurin'
@@ -132,3 +143,5 @@ jobs:
132143
status: ${{ job.status }}
133144
issue-repository: ${{ github.repository }}
134145
issue-number: 31837
146+
quarkus-sha: ${{ steps.quarkus-sha.outputs.sha }}
147+
project-sha: ${{ steps.quarkus-sha.outputs.sha }}

.github/workflows/ci-openshift.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,18 @@ jobs:
3636
name: OpenShift Integration Tests
3737
needs: cache
3838
runs-on: ubuntu-20.04
39-
if: "github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'"
39+
if: github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'
4040
strategy:
4141
fail-fast: false
4242
matrix:
4343
openshift: [v3.11.0]
4444
steps:
4545
- name: Checkout
4646
uses: actions/checkout@v4
47+
- name: Get SHA
48+
id: quarkus-sha
49+
run: |
50+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
4751
- uses: actions/setup-java@v4
4852
with:
4953
distribution: 'temurin'
@@ -83,3 +87,5 @@ jobs:
8387
status: ${{ job.status }}
8488
issue-repository: ${{ github.repository }}
8589
issue-number: 26582
90+
quarkus-sha: ${{ steps.quarkus-sha.outputs.sha }}
91+
project-sha: ${{ steps.quarkus-sha.outputs.sha }}

.github/workflows/deploy-snapshots.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
- uses: actions/checkout@v4
1919
with:
2020
ref: main
21+
- name: Get SHA
22+
id: quarkus-sha
23+
run: |
24+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
2125
- name: Reclaim Disk Space
2226
run: .github/ci-prerequisites.sh
2327
- name: Set up JDK 17
@@ -70,3 +74,5 @@ jobs:
7074
status: ${{ job.status }}
7175
issue-repository: ${{ github.repository }}
7276
issue-number: 12111
77+
quarkus-sha: ${{ steps.quarkus-sha.outputs.sha }}
78+
project-sha: ${{ steps.quarkus-sha.outputs.sha }}

.github/workflows/jdk-early-access-build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
|| '{ "include": [{ "version": 20, "dist": "jdk.java.net" }, { "version": 21, "dist": "jdk.java.net" }] }'
4747
)
4848
}}
49-
if: "github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'"
49+
if: github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'
5050
timeout-minutes: 360
5151
env:
5252
MAVEN_OPTS: -Xmx2048m -XX:MaxMetaspaceSize=1000m
@@ -75,6 +75,10 @@ jobs:
7575
- uses: actions/checkout@v4
7676
with:
7777
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.ref || 'main' }}
78+
- name: Get SHA
79+
id: quarkus-sha
80+
run: |
81+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
7882
- name: Reclaim Disk Space
7983
run: .github/ci-prerequisites.sh
8084
- name: Get Date
@@ -134,3 +138,5 @@ jobs:
134138
status: ${{ job.status }}
135139
issue-repository: ${{ github.repository }}
136140
issue-number: 15867
141+
quarkus-sha: ${{ steps.quarkus-sha.outputs.sha }}
142+
project-sha: ${{ steps.quarkus-sha.outputs.sha }}

.github/workflows/release-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
- uses: actions/checkout@v4
1818
with:
1919
ref: main
20+
- name: Get SHA
21+
id: quarkus-sha
22+
run: |
23+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
2024
- name: Reclaim Disk Space
2125
run: .github/ci-prerequisites.sh
2226
- name: Set up JDK 17
@@ -48,3 +52,5 @@ jobs:
4852
status: ${{ job.status }}
4953
issue-repository: ${{ github.repository }}
5054
issue-number: 13058
55+
quarkus-sha: ${{ steps.quarkus-sha.outputs.sha }}
56+
project-sha: ${{ steps.quarkus-sha.outputs.sha }}

0 commit comments

Comments
 (0)