Skip to content

Commit

Permalink
Update luacheck.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos authored Feb 10, 2024
1 parent f738f6c commit 195d215
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 @@ -21,42 +21,42 @@ jobs:
# Determine extension name
- name: Get Extension Name from XML
id: getnamefromxml
uses: bmos/get-xml-info@patch-1
uses: mavrosxristoforos/get-xml-info@1.2.1
with:
xml-file: 'extension.xml'
xpath: '//properties//name'

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

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

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

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

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

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

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

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

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

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

0 comments on commit 195d215

Please sign in to comment.