From 8c4d0f1a4efe974766aac279fcba3aa1a3ccc535 Mon Sep 17 00:00:00 2001 From: Stef Tervelde Date: Fri, 13 Dec 2024 16:35:48 +0100 Subject: [PATCH] Update Base.java alongside todo.txt (#887) * Update Base.java alongside todo.txt [skip ci] * Update step name [skip ci] --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad66c02b3..956b44df3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -93,9 +93,10 @@ jobs: architecture: ${{ matrix.arch }} - name: Setup Ant uses: cedx/setup-ant@v3 - - name: Write to todo.txt + - name: Write build_number and revision to todo.txt and Base.java run: | echo "${{ needs.version.outputs.build_number }} (${{ needs.version.outputs.version }})" > todo.txt + perl -pi -e 's/static private final int REVISION = \d+;/static private final int REVISION = ${{ needs.version.outputs.build_number }};/g; s/static private String VERSION_NAME = "\d+";\s*\/\/\$NON-NLS-1\$/static private String VERSION_NAME = "${{ needs.version.outputs.build_number }}"; \/\/\$NON-NLS-1\$/g' app/src/processing/app/Base.java - name: Install Certificates for Code Signing if: ${{ matrix.os_prefix == 'macos' }} uses: apple-actions/import-codesign-certs@v3