Skip to content

Commit 382ea9b

Browse files
committed
Run reproducibility check after each deployment
This PR starts a separate `verify-reproducibility` job, whenever a snapshot or release is deployed.
1 parent 55b799b commit 382ea9b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/build.yaml

+12-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
8
3939
17
4040
site-enabled: true
41-
reproducibility-check-enabled: ${{ startsWith(github.ref_name, 'release/') }}
41+
reproducibility-check-enabled: false
4242
develocity-enabled: ${{ ! startsWith(github.ref_name, 'release/') }}
4343

4444
deploy-snapshot:
@@ -73,3 +73,14 @@ jobs:
7373
8
7474
17
7575
project-id: log4j
76+
77+
verify-reproducibility:
78+
needs: [ deploy-snapshot, deploy-release ]
79+
if: ${{ always() && (needs.deploy-snapshot.result == 'success' || needs.deploy-release.result == 'success') }}
80+
uses: apache/logging-parent/.github/workflows/verify-reproducibility-reusable.yaml@rel/12.0.0
81+
with:
82+
nexus-url: ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.nexus-url || needs.deploy-snapshot.outputs.nexus-url }}
83+
# Checkout the repository by branch name, since the deployment job might add commits to the branch
84+
ref: ${{ github.ref_name }}
85+
# Encode the `runs-on` input as JSON array
86+
runs-on: '["ubuntu-latest", "macos-latest", "windows-latest"]'

0 commit comments

Comments
 (0)