This is an automated email from the ASF dual-hosted git repository. jdaugherty pushed a commit to branch 7.0.x in repository https://gitbox.apache.org/repos/asf/grails-forge.git
commit 1700be62177ccec889493955b92796a928213007 Author: James Daugherty <[email protected]> AuthorDate: Sun Jun 1 01:21:54 2025 -0400 [skip ci] force the same build date as grails-core --- .github/workflows/release.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d5d592b..486e0ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -127,8 +127,19 @@ jobs: with: token: ${{ secrets.GH_TOKEN }} ref: v${{ needs.publish.outputs.release_version }} - - name: 'Ensure Common Build Date' # to ensure a reproducible build - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> "$GITHUB_ENV" + - name: "Download grails-core BUILD_DATE.txt and rename to BUILD_DATE" + run: | + cd grails + release_url=$(gh release view ${{ github.ref_name }} --json assets --repo apache/grails-core --jq '.assets[] | select(.name == "BUILD_DATE.txt") | .url') + curl -L -H "Authorization: token $GH_TOKEN" -o BUILD_DATE "$release_url" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: 'Ensure Common Build Date' + run: | + echo "SOURCE_DATE_EPOCH=$(cat BUILD_DATE)" >> "$GITHUB_ENV" + - name: "Ensure source files use common date" + run: | + find . -type f -exec touch -d "@${SOURCE_DATE_EPOCH}" {} + - name: "☕️ Setup JDK" uses: actions/setup-java@v4 with:
