Skip to content

Commit

Permalink
Try to fix version on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdaes committed Dec 22, 2020
1 parent b25f6b4 commit 5ba2f7a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 118 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/check-for-extended-ascii-and-utf-bom.yml

This file was deleted.

98 changes: 0 additions & 98 deletions .github/workflows/plugin.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/upload-on-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
import re
with open("buildVars.py", 'r+', encoding='utf-8') as f:
text = f.read()
text = re.sub("\"addon_version\" : ", "\"addon_version\" : \"${{ github.ref }}.split("/")[-1]\"", text)
version = "${{ github.ref }}".split("/")[-1]
text = re.sub("\"addon_version\" : ", "\"addon_version\" : \"%s\"", text % version)
f.seek(0)
f.write(text)
f.truncate()
Expand Down

0 comments on commit 5ba2f7a

Please sign in to comment.