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 35
35
exit 1
36
36
fi
37
37
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
+
38
45
- name : Validate updated fields
39
46
run : |
40
47
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