Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace version in actions with dynamic value #1073

Merged
merged 17 commits into from
Feb 1, 2022
Merged
14 changes: 13 additions & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,24 @@ jobs:
matrix: ${{ fromJson(needs.metadata.outputs.matrix) }}
steps:
- uses: actions/checkout@v2.4.0
- name: Find Version String
if: endsWith(matrix.file, '00_SIGNALduino.pm')
id: versionList
uses: nguyenvanuyn96/str-find-action@master
with:
find: '\d\.\d\.\d'
include: "${{ matrix.file }}"
- uses: jungwinter/split@v2
id: versions
with:
msg: '${{ steps.versionList.outputs.resultArray }}'
separator: ' '
- name: Update SDUINO_VERSION date
if: endsWith(matrix.file, '00_SIGNALduino.pm')
uses: jacobtomlinson/gha-find-replace@2.0.0
with:
find: \w+\s+=>\s\'\d.\d.\d\+\d+\'
replace: "SDUINO_VERSION => '3.5.2+${{ needs.metadata.outputs.date }}'"
replace: "SDUINO_VERSION => '${{ steps.versions.outputs._1 }}+${{ needs.metadata.outputs.date }}'"
include: "${{ matrix.file }}"
- name: Update Date in ID line
uses: jacobtomlinson/gha-find-replace@2.0.0
Expand Down
2 changes: 1 addition & 1 deletion controls_signalduino.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
UPD 2022-01-25_22:34:43 234204 FHEM/00_SIGNALduino.pm
UPD 2022-01-31_22:29:18 233461 FHEM/00_SIGNALduino.pm
UPD 2021-11-21_21:18:05 17872 FHEM/10_FS10.pm
UPD 2020-05-26_11:51:12 20465 FHEM/10_SD_GT.pm
UPD 2021-11-28_11:34:02 23375 FHEM/10_SD_Rojaflex.pm
Expand Down