Skip to content

Commit 8c4d0f1

Browse files
authored
Update Base.java alongside todo.txt (#887)
* Update Base.java alongside todo.txt [skip ci] * Update step name [skip ci]
1 parent 2a97f64 commit 8c4d0f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ jobs:
9393
architecture: ${{ matrix.arch }}
9494
- name: Setup Ant
9595
uses: cedx/setup-ant@v3
96-
- name: Write to todo.txt
96+
- name: Write build_number and revision to todo.txt and Base.java
9797
run: |
9898
echo "${{ needs.version.outputs.build_number }} (${{ needs.version.outputs.version }})" > todo.txt
99+
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
99100
- name: Install Certificates for Code Signing
100101
if: ${{ matrix.os_prefix == 'macos' }}
101102
uses: apple-actions/import-codesign-certs@v3

0 commit comments

Comments
 (0)