Skip to content

Commit

Permalink
Workflow experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
negrutiu committed Jun 6, 2024
1 parent 1429c1e commit 84551c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/experiments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ jobs:
date = datetime.now(tz=timezone.utc)
print(f"VERSION={date.year}.{date.month}.{date.day}.${{github.run_attempt}}")
print(f"run_id=${{github.run_id}}, run_number=${{github.run_number}}, run_attempt=${{github.run_attempt}}")
with open(os.getenv('GITHUB_OUTPUT'), 'w') as fout:
fout.write(f"VERSION={date.year}.{date.month}.{date.day}.${{github.run_attempt}}")
print(f"GITHUB_OUTPUT={os.getenv('GITHUB_OUTPUT')}")
with open(os.getenv('GITHUB_OUTPUT'), "a") as fout:
fout.write(f"VERSION={date.year}.{date.month}.{date.day}.${{github.run_number}}")
- name: Print version
shell: cmd
Expand Down

0 comments on commit 84551c1

Please sign in to comment.