From a38ba67c0635f5b7ba250fc26eba7f61eece7b26 Mon Sep 17 00:00:00 2001 From: Stef Tervelde Date: Fri, 13 Dec 2024 15:30:41 +0100 Subject: [PATCH 1/2] Update Base.java alongside todo.txt [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 ad66c02b37..952f396a56 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 to `todo.txt` and update `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 From dbbcc45d7ef741d449e9a5183016b39586dd6346 Mon Sep 17 00:00:00 2001 From: Stef Tervelde Date: Fri, 13 Dec 2024 16:15:04 +0100 Subject: [PATCH 2/2] Update step name [skip ci] --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 952f396a56..956b44df31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -93,7 +93,7 @@ jobs: architecture: ${{ matrix.arch }} - name: Setup Ant uses: cedx/setup-ant@v3 - - name: Write to `todo.txt` and update `Base.java` + - 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