File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 3535 exit 1
3636 fi
3737
38+ - name : Update majorVersion and minorVersion in Flipcash object
39+ run : |
40+ # Update majorVersion within Flipcash object
41+ sed -i '/object Flipcash {/,/}/ s/const val majorVersion = [0-9]\{4\}/const val majorVersion = ${{ steps.date.outputs.YEAR }}/' "${{ steps.find-file.outputs.FILE_PATH }}"
42+ # Update minorVersion within Flipcash object
43+ sed -i '/object Flipcash {/,/}/ s/const val minorVersion = [0-9]\{1,2\}/const val minorVersion = ${{ steps.date.outputs.MONTH }}/' "${{ steps.find-file.outputs.FILE_PATH }}"
44+
3845 - name : Validate updated fields
3946 run : |
4047 if ! grep -A 10 'object Flipcash {' buildSrc/src/main/java/Packaging.kt | grep -q "const val majorVersion = ${{ steps.date.outputs.YEAR }}"; then
You can’t perform that action at this time.
0 commit comments