@@ -20,18 +20,45 @@ 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+ env :
43+ REWRITE_GRADLE_MIRROR_URL : https://artifactory.moderne.ninja/artifactory/moderne-cache-3/
44+ REWRITE_GRADLE_MIRROR_USERNAME : ${{ secrets.ARTIFACTORY_USERNAME }}
45+ REWRITE_GRADLE_MIRROR_PASSWORD : ${{ secrets.ARTIFACTORY_PASSWORD }}
46+
47+ - if : failure() && github.event_name == 'schedule' && (github.repository_owner == 'openrewrite' || github.repository_owner == 'moderneinc')
48+ uses : openrewrite/gh-automation/.github/actions/slack-failure@main
49+ with :
50+ webhook : ${{ secrets.OPS_GITHUB_ACTIONS_WEBHOOK }}
51+
52+ - if : >
53+ github.event_name != 'pull_request' &&
54+ github.ref == 'refs/heads/main' &&
55+ (github.repository_owner == 'openrewrite' || github.repository_owner == 'moderneinc')
56+ uses: openrewrite/gh-automation/.github/actions/publish-snapshots@main
57+ with:
58+ sonatype_username: ${{ secrets.SONATYPE_USERNAME }}
59+ sonatype_token: ${{ secrets.SONATYPE_TOKEN }}
60+ ossrh_signing_key: ${{ secrets.OSSRH_SIGNING_KEY }}
61+ ossrh_signing_password: ${{ secrets.OSSRH_SIGNING_PASSWORD }}
62+ node_auth_token: ${{ secrets.NPM_TOKEN }}
63+ pypi_token: ${{ secrets.PYPI_OPENREWRITE_PUBLISH }}
64+ nuget_api_key: ${{ secrets.NUGET_API_KEY }}
0 commit comments