Skip to content

Commit

Permalink
File sync from bmos/fg-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 22, 2024
1 parent 7ca72bf commit 0269e92
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,42 +22,42 @@ jobs:
# Determine extension name
- name: Get Extension Name from XML
id: getnamefromxml
uses: mavrosxristoforos/get-xml-info@1.2.1
uses: mavrosxristoforos/get-xml-info@2.0
with:
xml-file: 'extension.xml'
xpath: '//properties//name'

- name: Format Extension Name
id: removenameprefix
uses: ashley-taylor/regex-property-action@v1
uses: bmos/regex-property-action@v1
with:
value: ${{ steps.getnamefromxml.outputs.info }}
regex: '[A-Za-z]+:\s+'
replacement: ''

- id: removenametabs
uses: ashley-taylor/regex-property-action@v1
uses: bmos/regex-property-action@v1
with:
value: ${{ steps.removenameprefix.outputs.value }}
regex: " "
replacement: ''

- id: removeapostrophes
uses: ashley-taylor/regex-property-action@v1
uses: bmos/regex-property-action@v1
with:
value: ${{ steps.removenametabs.outputs.value }}
regex: "'"
replacement: ''

- id: removenamepunctuation
uses: ashley-taylor/regex-property-action@v1
uses: bmos/regex-property-action@v1
with:
value: ${{ steps.removeapostrophes.outputs.value }}
regex: '[^\w\s].*'
replacement: ''

- id: removenamespaces
uses: ashley-taylor/regex-property-action@v1
uses: bmos/regex-property-action@v1
with:
value: ${{ steps.removenamepunctuation.outputs.value }}
regex: '\s'
Expand All @@ -71,42 +71,42 @@ jobs:
# Determine extension author
- name: Get Author Name from XML
id: getauthorfromxml
uses: mavrosxristoforos/get-xml-info@1.2.1
uses: mavrosxristoforos/get-xml-info@2.0
with:
xml-file: 'extension.xml'
xpath: '//properties//author'

- name: Format author name
id: removeauthorprefix
uses: ashley-taylor/regex-property-action@v1
uses: bmos/regex-property-action@v1
with:
value: ${{ steps.getauthorfromxml.outputs.info }}
regex: '[A-Za-z]+:\s'
replacement: ''

- id: removeauthortabs
uses: ashley-taylor/regex-property-action@v1
uses: bmos/regex-property-action@v1
with:
value: ${{ steps.removeauthorprefix.outputs.value }}
regex: " "
replacement: ''

- id: removeauthorapostrophes
uses: ashley-taylor/regex-property-action@v1
uses: bmos/regex-property-action@v1
with:
value: ${{ steps.removeauthortabs.outputs.value }}
regex: "'"
replacement: ''

- id: removeauthorpunctuation
uses: ashley-taylor/regex-property-action@v1
uses: bmos/regex-property-action@v1
with:
value: ${{ steps.removeauthorapostrophes.outputs.value }}
regex: '[^\w\s].*'
replacement: ''

- id: removeauthorspaces
uses: ashley-taylor/regex-property-action@v1
uses: bmos/regex-property-action@v1
with:
value: ${{ steps.removeauthorpunctuation.outputs.value }}
regex: '\s'
Expand Down

0 comments on commit 0269e92

Please sign in to comment.