We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 609cad7 commit a811731Copy full SHA for a811731
1 file changed
.github/workflows/prep-dev.yml
@@ -35,6 +35,13 @@ jobs:
35
exit 1
36
fi
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
+
45
- name: Validate updated fields
46
run: |
47
if ! grep -A 10 'object Flipcash {' buildSrc/src/main/java/Packaging.kt | grep -q "const val majorVersion = ${{ steps.date.outputs.YEAR }}"; then
0 commit comments