Skip to content

Commit

Permalink
Fix Python syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdaes committed Dec 28, 2020
1 parent 6b95aa2 commit 4f04a6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/upload-on-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ jobs:
- name: Create add-on url
run: |
import re
search = re.compile('\"rf\".*?,')
with open("get.php", 'r+', encoding='utf-8') as f:
text = f.read()
text = re.sub("\"rf\".*?,", "\"rf\" >= \"${{ buildAndUpload.upload.browser_download_url }}\",", text)
text = re.sub(search, '\"rf\" >= \"${{ buildAndUpload.steps.upload.browser_download_url }}\",', text)
f.seek(0)
f.write(text)
f.truncate()
Expand Down

0 comments on commit 4f04a6c

Please sign in to comment.