Skip to content

Commit c0ea928

Browse files
committed
Replace NativeBuildReport.java with report-status-in-issue action
It avoids having an ad hoc script in each repository. Also the new action updates a date in the issue description so that we can warn on status.quarkus.io when a status is too old.
1 parent aec3f34 commit c0ea928

File tree

6 files changed

+49
-177
lines changed

6 files changed

+49
-177
lines changed

.github/NativeBuildReport.java

Lines changed: 0 additions & 100 deletions
This file was deleted.

.github/workflows/ci-istio.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,10 @@ jobs:
8484
export QUARKUS_CONTAINER_IMAGE_REGISTRY=quay.io
8585
./mvnw ${MAVEN_ARGS} clean install -pl :quarkus-integration-test-istio-invoker -De2e-tests -Dkubernetes-e2e-tests
8686
- name: Report status
87-
if: "always() && github.repository == 'quarkusio/quarkus'"
88-
shell: bash
89-
run: |
90-
curl -Ls https://sh.jbang.dev | bash -s - app setup
91-
~/.jbang/bin/jbang .github/NativeBuildReport.java \
92-
issueNumber=29536 \
93-
runId=${{ github.run_id }} \
94-
status=${{ job.status }} \
95-
token=${{ secrets.GITHUB_API_TOKEN }} \
96-
issueRepo=${{ github.repository }} \
97-
thisRepo=${{ github.repository }}
87+
if: always() && github.repository == 'quarkusio/quarkus'
88+
uses: quarkusio/report-status-in-issue@main
89+
with:
90+
github-token: ${{ secrets.GITHUB_API_TOKEN }}
91+
status: ${{ job.status }}
92+
issue-repository: ${{ github.repository }}
93+
issue-number: 29536

.github/workflows/ci-kubernetes.yml

Lines changed: 21 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,13 @@ jobs:
7676
export QUARKUS_CONTAINER_IMAGE_REGISTRY=quay.io
7777
./mvnw ${MAVEN_ARGS} clean install -pl :quarkus-integration-test-kubernetes-invoker -De2e-tests -Dkubernetes-e2e-tests
7878
- name: Report status
79-
if: "always() && github.repository == 'quarkusio/quarkus'"
80-
shell: bash
81-
run: |
82-
curl -Ls https://sh.jbang.dev | bash -s - app setup
83-
~/.jbang/bin/jbang .github/NativeBuildReport.java \
84-
issueNumber=26581 \
85-
runId=${{ github.run_id }} \
86-
status=${{ job.status }} \
87-
token=${{ secrets.GITHUB_API_TOKEN }} \
88-
issueRepo=${{ github.repository }} \
89-
thisRepo=${{ github.repository }}
79+
if: always() && github.repository == 'quarkusio/quarkus'
80+
uses: quarkusio/report-status-in-issue@main
81+
with:
82+
github-token: ${{ secrets.GITHUB_API_TOKEN }}
83+
status: ${{ job.status }}
84+
issue-repository: ${{ github.repository }}
85+
issue-number: 26581
9086

9187
knative:
9288
name: Knative Integration Tests
@@ -130,17 +126,13 @@ jobs:
130126
export QUARKUS_CONTAINER_IMAGE_INSECURE=true
131127
./mvnw ${MAVEN_ARGS} clean install -pl :quarkus-integration-test-kubernetes-invoker -De2e-tests -Dknative-e2e-tests
132128
- name: Report status
133-
if: "always() && github.repository == 'quarkusio/quarkus'"
134-
shell: bash
135-
run: |
136-
curl -Ls https://sh.jbang.dev | bash -s - app setup
137-
~/.jbang/bin/jbang .github/NativeBuildReport.java \
138-
issueNumber=31837 \
139-
runId=${{ github.run_id }} \
140-
status=${{ job.status }} \
141-
token=${{ secrets.GITHUB_API_TOKEN }} \
142-
issueRepo=${{ github.repository }} \
143-
thisRepo=${{ github.repository }}
129+
if: always() && github.repository == 'quarkusio/quarkus'
130+
uses: quarkusio/report-status-in-issue@main
131+
with:
132+
github-token: ${{ secrets.GITHUB_API_TOKEN }}
133+
status: ${{ job.status }}
134+
issue-repository: ${{ github.repository }}
135+
issue-number: 31837
144136

145137

146138
openshift:
@@ -187,14 +179,10 @@ jobs:
187179
export QUARKUS_CONTAINER_IMAGE_PASSWORD=${{ secrets.QUAY_QUARKUSCI_PASSWORD }}
188180
./mvnw ${MAVEN_ARGS} clean install -pl :quarkus-integration-test-kubernetes-invoker -De2e-tests -Dopenshift-e2e-tests
189181
- name: Report status
190-
if: "always() && github.repository == 'quarkusio/quarkus'"
191-
shell: bash
192-
run: |
193-
curl -Ls https://sh.jbang.dev | bash -s - app setup
194-
~/.jbang/bin/jbang .github/NativeBuildReport.java \
195-
issueNumber=26582 \
196-
runId=${{ github.run_id }} \
197-
status=${{ job.status }} \
198-
token=${{ secrets.GITHUB_API_TOKEN }} \
199-
issueRepo=${{ github.repository }} \
200-
thisRepo=${{ github.repository }}
182+
if: always() && github.repository == 'quarkusio/quarkus'
183+
uses: quarkusio/report-status-in-issue@main
184+
with:
185+
github-token: ${{ secrets.GITHUB_API_TOKEN }}
186+
status: ${{ job.status }}
187+
issue-repository: ${{ github.repository }}
188+
issue-number: 26582

.github/workflows/deploy-snapshots.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,11 @@ jobs:
6161
shell: bash
6262
run: rm -r ~/.m2/repository/io/quarkus
6363

64-
- name: Report
64+
- name: Report status
6565
if: always()
66-
shell: bash
67-
run: |
68-
curl -Ls https://sh.jbang.dev | bash -s - app setup
69-
~/.jbang/bin/jbang .github/NativeBuildReport.java \
70-
issueNumber=12111 \
71-
runId=${{ github.run_id }} \
72-
status=${{ job.status }} \
73-
token=${{ secrets.GITHUB_API_TOKEN }} \
74-
issueRepo=${{ github.repository }} \
75-
thisRepo=${{ github.repository }}
66+
uses: quarkusio/report-status-in-issue@main
67+
with:
68+
github-token: ${{ secrets.GITHUB_API_TOKEN }}
69+
status: ${{ job.status }}
70+
issue-repository: ${{ github.repository }}
71+
issue-number: 12111

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,10 @@ jobs:
127127
shell: bash
128128
run: rm -r ~/.m2/repository/io/quarkus
129129
- name: Report status
130-
if: "always() && github.repository == 'quarkusio/quarkus' && github.event_name != 'workflow_dispatch'"
131-
shell: bash
132-
run: |
133-
curl -Ls https://sh.jbang.dev | bash -s - app setup
134-
~/.jbang/bin/jbang .github/NativeBuildReport.java \
135-
issueNumber=15867 \
136-
runId=${{ github.run_id }} \
137-
status=${{ job.status }} \
138-
token=${{ secrets.GITHUB_API_TOKEN }} \
139-
issueRepo=${{ github.repository }} \
140-
thisRepo=${{ github.repository }}
130+
if: always() && github.repository == 'quarkusio/quarkus' && github.event_name != 'workflow_dispatch'
131+
uses: quarkusio/report-status-in-issue@main
132+
with:
133+
github-token: ${{ secrets.GITHUB_API_TOKEN }}
134+
status: ${{ job.status }}
135+
issue-repository: ${{ github.repository }}
136+
issue-number: 15867

.github/workflows/release-build.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,11 @@ jobs:
4040
-Dno-test-modules \
4141
-Dgpg.skip \
4242
clean install
43-
- name: Report
43+
- name: Report status
4444
if: always()
45-
shell: bash
46-
run: |
47-
curl -Ls https://sh.jbang.dev | bash -s - app setup
48-
~/.jbang/bin/jbang .github/NativeBuildReport.java \
49-
issueNumber=13058 \
50-
runId=${{ github.run_id }} \
51-
status=${{ job.status }} \
52-
token=${{ secrets.GITHUB_API_TOKEN }} \
53-
issueRepo=${{ github.repository }} \
54-
thisRepo=${{ github.repository }}
45+
uses: quarkusio/report-status-in-issue@main
46+
with:
47+
github-token: ${{ secrets.GITHUB_API_TOKEN }}
48+
status: ${{ job.status }}
49+
issue-repository: ${{ github.repository }}
50+
issue-number: 13058

0 commit comments

Comments
 (0)