Skip to content

Commit 05f0db5

Browse files
committed
build: update workflows & switch to beta version
1 parent b9dc43b commit 05f0db5

6 files changed

Lines changed: 54 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
tags-ignore: [ "**" ]
66
pull_request:
77
release:
8-
types: [ released ]
8+
types: [ published ]
99
jobs:
1010
build:
1111
# Only run on PRs if the source branch is on someone else's repo
@@ -31,9 +31,9 @@ jobs:
3131
- name: Determine Status
3232
run: |
3333
if [ "$(./gradlew properties | awk '/^version:/ { print $2; }' | grep '\-SNAPSHOT')" ]; then
34-
echo "STATUS=snapshot" >> $GITHUB_ENV
34+
echo "STATUS=snapshot" >> $GITHUB_ENV
3535
else
36-
echo "STATUS=release" >> $GITHUB_ENV
36+
echo "STATUS=release" >> $GITHUB_ENV
3737
fi
3838
- name: Publish Snapshot
3939
if: "${{ env.STATUS != 'release' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}"
@@ -49,3 +49,14 @@ jobs:
4949
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}"
5050
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.SIGNING_KEY }}"
5151
ORG_GRADLE_PROJECT_signingPassword: "${{ secrets.SIGNING_PASSWORD }}"
52+
event_file:
53+
name: "Event File"
54+
# Only run on PRs if the source branch is on someone else's repo
55+
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
56+
runs-on: ubuntu-latest
57+
steps:
58+
- name: Upload
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: Event File
62+
path: ${{ github.event_path }}

.github/workflows/test_results.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test Results
2+
3+
on:
4+
workflow_run:
5+
workflows: [ "Build cloud-processors" ]
6+
types:
7+
- completed
8+
permissions: { }
9+
10+
jobs:
11+
test-results:
12+
name: Test Results
13+
runs-on: ubuntu-latest
14+
if: github.event.workflow_run.conclusion != 'skipped'
15+
permissions:
16+
checks: write
17+
# needed unless run with comment_mode: off
18+
pull-requests: write
19+
# required by download step to access artifacts API
20+
actions: read
21+
steps:
22+
- name: Download and Extract Artifacts
23+
uses: dawidd6/action-download-artifact@v3
24+
with:
25+
run_id: ${{ github.event.workflow_run.id }}
26+
path: artifacts
27+
- name: Publish Test Results
28+
uses: EnricoMi/publish-unit-test-result-action@v2
29+
with:
30+
commit: ${{ github.event.workflow_run.head_sha }}
31+
event_file: artifacts/Event File/event.json
32+
event_name: ${{ github.event.workflow_run.event }}
33+
files: "artifacts/**/*.xml"

cloud-processors-confirmation/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Postprocessor that adds the ability to require an extra confirmation before exec
77
Snapshots are available on the Sonatype Snapshots Repository:
88

99
```xml
10+
<!-- For snapshot releases -->
1011
<repository>
1112
<id>sonatype-snapshots</id>
1213
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
@@ -15,7 +16,7 @@ Snapshots are available on the Sonatype Snapshots Repository:
1516
<dependency>
1617
<groupId>org.incendo</groupId>
1718
<artifactId>cloud-processors-confirmation</artifactId>
18-
<version>1.0.0-SNAPSHOT</version>
19+
<version>1.0.0-beta.1</version>
1920
</dependency>
2021
```
2122

cloud-processors-cooldown/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Postprocessor that adds command cooldowns.
77
Snapshots are available on the Sonatype Snapshots Repository:
88

99
```xml
10+
<!-- For snapshot releases -->
1011
<repository>
1112
<id>sonatype-snapshots</id>
1213
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
@@ -15,7 +16,7 @@ Snapshots are available on the Sonatype Snapshots Repository:
1516
<dependency>
1617
<groupId>org.incendo</groupId>
1718
<artifactId>cloud-processors-cooldown</artifactId>
18-
<version>1.0.0-SNAPSHOT</version>
19+
<version>1.0.0-beta.1</version>
1920
</dependency>
2021
```
2122

cloud-processors-requirements/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ are defined on a per-command basis.
1111
Snapshots are available on the Sonatype Snapshots Repository:
1212

1313
```xml
14+
<!-- For snapshot releases -->
1415
<repository>
1516
<id>sonatype-snapshots</id>
1617
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
@@ -19,7 +20,7 @@ Snapshots are available on the Sonatype Snapshots Repository:
1920
<dependency>
2021
<groupId>org.incendo</groupId>
2122
<artifactId>cloud-processors-requirements</artifactId>
22-
<version>1.0.0-SNAPSHOT</version>
23+
<version>1.0.0-beta.1</version>
2324
</dependency>
2425
```
2526

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group=org.incendo
2-
version=1.0.0-SNAPSHOT
2+
version=1.0.0-beta.1
33
description=cloud-processors
44

55
org.gradle.caching=true

0 commit comments

Comments
 (0)