зеркало из https://github.com/nextcloud/.github.git
feat: validate app version from info.xml against the tag name
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Родитель
64588f62ca
Коммит
9a2cf83a79
|
@ -36,6 +36,17 @@ jobs:
|
|||
with:
|
||||
path: ${{ env.APP_NAME }}
|
||||
|
||||
- name: Get app version number
|
||||
id: app-version
|
||||
uses: skjnldsv/xpath-action@7e6a7c379d0e9abc8acaef43df403ab4fc4f770c # master
|
||||
with:
|
||||
filename: ${{ env.APP_NAME }}/appinfo/info.xml
|
||||
expression: "//info//version/text()"
|
||||
|
||||
- name: Validate app version against tag
|
||||
run: |
|
||||
[ "${{ env.APP_VERSION }}" = "v${{ fromJSON(steps.app-version.outputs.result).version }}" ]
|
||||
|
||||
- name: Get appinfo data
|
||||
id: appinfo
|
||||
uses: skjnldsv/xpath-action@7e6a7c379d0e9abc8acaef43df403ab4fc4f770c # master
|
||||
|
|
Загрузка…
Ссылка в новой задаче