mirror of
https://github.com/Cockatrice/Magic-Token.git
synced 2026-04-06 17:25:12 -05:00
Replace set-output in python code
This commit is contained in:
parent
1a138d00d8
commit
ecb3b5f092
4
.github/workflows/updateversion.yml
vendored
4
.github/workflows/updateversion.yml
vendored
|
|
@ -101,6 +101,7 @@ jobs:
|
|||
id: version
|
||||
shell: python
|
||||
run: |
|
||||
import os
|
||||
import re
|
||||
previous = "${{steps.date.outputs.previous}}"
|
||||
date = "${{steps.date.outputs.date}}"
|
||||
|
|
@ -124,7 +125,8 @@ jobs:
|
|||
else:
|
||||
charlist.append("a")
|
||||
version += "".join(reversed(charlist))
|
||||
print(f"::set-output name=version::{version}")
|
||||
with open(os.environ['GITHUB_OUTPUT'], 'a') as envFile:
|
||||
print(f"version={version}", file=envFile)
|
||||
|
||||
- name: Update date in files
|
||||
if: steps.check.outputs.update == 'true'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user