Skip to content

Commit 4d27c04

Browse files
authored
Merge pull request #1557 from gsmet/shas
Add Quarkus SHA and project SHA when reporting the status
2 parents ffde8eb + 71cb2a7 commit 4d27c04

File tree

2 files changed

+32
-10
lines changed

2 files changed

+32
-10
lines changed

.github/workflows/daily-aarch64-development.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
generate-json-matrix:
1212
name: Tests - Read JSON matrix
1313
runs-on: ubuntu-latest
14-
if: "github.repository == 'quarkusio/quarkus-quickstarts' || github.event_name == 'workflow_dispatch'"
14+
if: github.repository == 'quarkusio/quarkus-quickstarts' || github.event_name == 'workflow_dispatch'
1515
outputs:
1616
matrix: ${{ steps.generate.outputs.matrix }}
1717
steps:
@@ -23,11 +23,14 @@ jobs:
2323
json=$(.github/generate-native-matrix.sh | tr -d '\n')
2424
echo "matrix=${json}" >> $GITHUB_OUTPUT
2525
26-
linux-build-native:
26+
build-with-native:
2727
name: Linux - Native build
2828
runs-on: ubuntu-24.04-arm
2929
needs: [ generate-json-matrix ]
30-
if: "github.repository == 'quarkusio/quarkus-quickstarts' || github.event_name == 'workflow_dispatch'"
30+
if: github.repository == 'quarkusio/quarkus-quickstarts' || github.event_name == 'workflow_dispatch'
31+
outputs:
32+
quarkus-sha: ${{ steps.build-quarkus.outputs.sha }}
33+
project-sha: ${{ steps.project-sha.outputs.sha }}
3134
strategy:
3235
fail-fast: false
3336
max-parallel: 3
@@ -36,6 +39,10 @@ jobs:
3639
- uses: actions/checkout@v4
3740
with:
3841
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.ref || 'development' }}
42+
- name: Get current SHA
43+
id: project-sha
44+
run: |
45+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
3946
- name: Reclaim Disk Space
4047
run: .github/ci-prerequisites.sh
4148
- name: Get Date
@@ -60,7 +67,9 @@ jobs:
6067
cache: 'maven'
6168

6269
- name: Build Quarkus main
70+
id: build-quarkus
6371
run: |
72+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
6473
git clone https://github.com/quarkusio/quarkus.git
6574
cd quarkus
6675
./mvnw -T1C -e -B --settings .github/mvn-settings.xml clean install -Dquickly-ci
@@ -95,7 +104,7 @@ jobs:
95104
build-report:
96105
runs-on: ubuntu-latest
97106
name: Build report
98-
needs: [ linux-build-native ]
107+
needs: [ build-with-native ]
99108
if: always()
100109
steps:
101110
- uses: actions/download-artifact@v4
@@ -114,15 +123,17 @@ jobs:
114123
report:
115124
name: Report
116125
runs-on: ubuntu-latest
117-
needs: [ linux-build-native ]
118-
if: "always() && github.repository == 'quarkusio/quarkus-quickstarts'"
126+
needs: [ build-with-native ]
127+
if: always() && github.repository == 'quarkusio/quarkus-quickstarts'
119128
steps:
120129
- uses: actions/checkout@v4
121130
with:
122131
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.ref || 'development' }}
123132
- uses: quarkusio/report-status-in-issue@main
124133
with:
125134
github-token: ${{ secrets.GITHUB_API_TOKEN }}
126-
status: ${{ needs.linux-build-native.result == 'success' && 'success' || 'failure' }}
135+
status: ${{ needs.build-with-native.result == 'success' && 'success' || 'failure' }}
127136
issue-repository: quarkusio/quarkus
128137
issue-number: 48241
138+
quarkus-sha: ${{ needs.build-with-native.outputs.quarkus-sha }}
139+
project-sha: ${{ needs.build-with-native.outputs.project-sha }}

.github/workflows/native-build-development.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
generate-json-matrix:
1313
name: Native Tests - Read JSON matrix
1414
runs-on: ubuntu-latest
15-
if: "github.repository == 'quarkusio/quarkus-quickstarts' || github.event_name == 'workflow_dispatch'"
15+
if: github.repository == 'quarkusio/quarkus-quickstarts' || github.event_name == 'workflow_dispatch'
1616
outputs:
1717
matrix: ${{ steps.generate.outputs.matrix }}
1818
steps:
@@ -27,7 +27,10 @@ jobs:
2727
name: ${{matrix.category}}
2828
runs-on: ubuntu-latest
2929
needs: [generate-json-matrix]
30-
if: "github.repository == 'quarkusio/quarkus-quickstarts' || github.event_name == 'workflow_dispatch'"
30+
if: github.repository == 'quarkusio/quarkus-quickstarts' || github.event_name == 'workflow_dispatch'
31+
outputs:
32+
quarkus-sha: ${{ steps.build-quarkus.outputs.sha }}
33+
project-sha: ${{ steps.project-sha.outputs.sha }}
3134
strategy:
3235
max-parallel: 5
3336
fail-fast: false
@@ -36,6 +39,10 @@ jobs:
3639
- uses: actions/checkout@v4
3740
with:
3841
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.ref || 'development' }}
42+
- name: Get current SHA
43+
id: project-sha
44+
run: |
45+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
3946
4047
- name: Reclaim Disk Space
4148
run: .github/ci-prerequisites.sh
@@ -60,7 +67,9 @@ jobs:
6067
java-version: 17
6168

6269
- name: Build Quarkus main
70+
id: build-quarkus
6371
run: |
72+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
6473
git clone https://github.com/quarkusio/quarkus.git
6574
cd quarkus
6675
./mvnw -T1C -e -B --settings .github/mvn-settings.xml clean install -Dquickly-ci
@@ -115,7 +124,7 @@ jobs:
115124
name: Report
116125
runs-on: ubuntu-latest
117126
needs: [build-with-native]
118-
if: "always() && github.repository == 'quarkusio/quarkus-quickstarts'"
127+
if: always() && github.repository == 'quarkusio/quarkus-quickstarts'
119128
steps:
120129
- uses: actions/checkout@v4
121130
with:
@@ -126,3 +135,5 @@ jobs:
126135
status: ${{ needs.build-with-native.result }}
127136
issue-repository: quarkusio/quarkus
128137
issue-number: 6588
138+
quarkus-sha: ${{ needs.build-with-native.outputs.quarkus-sha }}
139+
project-sha: ${{ needs.build-with-native.outputs.project-sha }}

0 commit comments

Comments
 (0)