Skip to content

Commit a811731

Browse files
authored
Update prep-dev.yml
1 parent 609cad7 commit a811731

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/prep-dev.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ jobs:
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

0 commit comments

Comments
 (0)