@@ -20,18 +20,41 @@ concurrency:
2020
2121jobs :
2222 build :
23- uses : openrewrite/gh-automation/.github/workflows/ci-gradle.yml@main
24- with :
25- java_version : |
26- 25
27- 21
28- secrets :
29- gradle_enterprise_access_key : ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
30- sonatype_username : ${{ secrets.SONATYPE_USERNAME }}
31- sonatype_token : ${{ secrets.SONATYPE_TOKEN}}
32- ossrh_signing_key : ${{ secrets.OSSRH_SIGNING_KEY }}
33- ossrh_signing_password : ${{ secrets.OSSRH_SIGNING_PASSWORD }}
34- OPS_GITHUB_ACTIONS_WEBHOOK : ${{ secrets.OPS_GITHUB_ACTIONS_WEBHOOK }}
35- node_auth_token : ${{ secrets.NPM_TOKEN }}
36- pypi_token : ${{ secrets.PYPI_OPENREWRITE_PUBLISH }}
37- nuget_api_key : ${{ secrets.NUGET_API_KEY }}
23+ runs-on : ubuntu-latest
24+ if : github.event_name != 'schedule' || github.repository_owner == 'openrewrite' || github.repository_owner == 'moderneinc'
25+ steps :
26+ - uses : openrewrite/gh-automation/.github/actions/setup@main
27+ with :
28+ java_version : |
29+ 25
30+ 21
31+ develocity_access_key : ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
32+
33+ # Route Maven resolution through Moderne's Artifactory cache to avoid
34+ # Maven Central rate-limiting (HTTP 404 + Retry-After) under parallel
35+ # test load. Picked up by MavenSettingsAutoLoadingExtension at test time.
36+ - uses : s4u/maven-settings-action@v3.1.0
37+ with :
38+ mirrors : ' [{"id": "moderne-cache", "name": "Moderne Artifactory Cache", "mirrorOf": "*", "url": "https://artifactory.moderne.ninja/artifactory/moderne-cache-3/"}]'
39+ servers : ' [{"id": "moderne-cache", "username": "${{ secrets.ARTIFACTORY_USERNAME }}", "password": "${{ secrets.ARTIFACTORY_PASSWORD }}"}]'
40+
41+ - uses : openrewrite/gh-automation/.github/actions/build@main
42+
43+ - if : failure() && github.event_name == 'schedule' && (github.repository_owner == 'openrewrite' || github.repository_owner == 'moderneinc')
44+ uses : openrewrite/gh-automation/.github/actions/slack-failure@main
45+ with :
46+ webhook : ${{ secrets.OPS_GITHUB_ACTIONS_WEBHOOK }}
47+
48+ - if : >
49+ github.event_name != 'pull_request' &&
50+ github.ref == 'refs/heads/main' &&
51+ (github.repository_owner == 'openrewrite' || github.repository_owner == 'moderneinc')
52+ uses: openrewrite/gh-automation/.github/actions/publish-snapshots@main
53+ with:
54+ sonatype_username: ${{ secrets.SONATYPE_USERNAME }}
55+ sonatype_token: ${{ secrets.SONATYPE_TOKEN }}
56+ ossrh_signing_key: ${{ secrets.OSSRH_SIGNING_KEY }}
57+ ossrh_signing_password: ${{ secrets.OSSRH_SIGNING_PASSWORD }}
58+ node_auth_token: ${{ secrets.NPM_TOKEN }}
59+ pypi_token: ${{ secrets.PYPI_OPENREWRITE_PUBLISH }}
60+ nuget_api_key: ${{ secrets.NUGET_API_KEY }}
0 commit comments