@@ -30,18 +30,18 @@ jobs:
3030
3131 build :
3232 if : github.actor != 'dependabot[bot]'
33- uses : apache/logging-parent/.github/workflows/build-reusable.yaml@rel/11.3 .0
33+ uses : apache/logging-parent/.github/workflows/build-reusable.yaml@rel/12.0 .0
3434 secrets :
3535 DV_ACCESS_TOKEN : ${{ startsWith(github.ref_name, 'release/') && '' || secrets.GE_ACCESS_TOKEN }}
3636 with :
3737 site-enabled : true
38- reproducibility-check-enabled : ${{ startsWith(github.ref_name, 'release/') }}
38+ reproducibility-check-enabled : false
3939 develocity-enabled : ${{ ! startsWith(github.ref_name, 'release/') }}
4040
4141 deploy-snapshot :
4242 needs : build
4343 if : github.repository == 'apache/logging-log4j2' && github.ref_name == 'main'
44- uses : apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/11.3 .0
44+ uses : apache/logging-parent/.github/workflows/deploy-snapshot-reusable.yaml@rel/12.0 .0
4545 # Secrets for deployments
4646 secrets :
4747 NEXUS_USERNAME : ${{ secrets.NEXUS_USER }}
5050 deploy-release :
5151 needs : build
5252 if : github.repository == 'apache/logging-log4j2' && startsWith(github.ref_name, 'release/')
53- uses : apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/11.3 .0
53+ uses : apache/logging-parent/.github/workflows/deploy-release-reusable.yaml@rel/12.0 .0
5454 # Secrets for deployments
5555 secrets :
5656 GPG_SECRET_KEY : ${{ secrets.LOGGING_GPG_SECRET_KEY }}
6363 contents : write
6464 with :
6565 project-id : log4j
66+
67+ verify-reproducibility :
68+ needs : [ deploy-snapshot, deploy-release ]
69+ if : ${{ always() && (needs.deploy-snapshot.result == 'success' || needs.deploy-release.result == 'success') }}
70+ name : " verify-reproducibility (${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }})"
71+ uses : apache/logging-parent/.github/workflows/verify-reproducibility-reusable.yaml@rel/12.0.0
72+ with :
73+ nexus-url : ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.nexus-url || 'https://repository.apache.org/content/groups/snapshots' }}
74+ # Encode the `runs-on` input as JSON array
75+ runs-on : ' ["ubuntu-latest", "macos-latest", "windows-latest"]'
76+
77+ # Run integration-tests automatically after a snapshot or RC is published
78+ integration-test :
79+ needs : [ deploy-snapshot, deploy-release ]
80+ if : ${{ always() && (needs.deploy-snapshot.result == 'success' || needs.deploy-release.result == 'success') }}
81+ name : " integration-test (${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }})"
82+ uses : apache/logging-log4j-samples/.github/workflows/integration-test.yaml@main
83+ with :
84+ log4j-version : ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }}
85+ log4j-repository-url : ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.nexus-url || needs.deploy-snapshot.outputs.nexus-url }}
86+ # Use the `main` branch of `logging-log4j-samples`
87+ samples-ref : ' refs/heads/main'
0 commit comments