Skip to content

Experiments

Experiments #7

Workflow file for this run

name: Experiments
on:
workflow_dispatch
jobs:
experiments:
outputs:
# accessible from other jobs as ${{needs.experiments.outputs.version}}
version: ${{steps.version.outputs.VERSION}}
runs-on: windows-latest
steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: 'true'
- name: Print environment
shell: cmd
run: |
echo ----------------------------------------------------
set
echo ====================================================
py -0p
echo ----------------------------------------------------
py -3 -V
py -3 -m pip list
- id: version
name: Version
shell: python
run: |
import os
from datetime import datetime, timezone
date = datetime.now(tz=timezone.utc)
print(f"run_id=${{github.run_id}}, run_number=${{github.run_number}}, run_attempt=${{github.run_attempt}}")
print(f"GITHUB_OUTPUT={os.getenv('GITHUB_OUTPUT')}")
with open(os.getenv('GITHUB_OUTPUT'), "a") as fout:
print( f"VERSION={date.year}.{date.month}.{date.day}.${{github.run_number}}")
fout.write(f"VERSION={date.year}.{date.month}.{date.day}.${{github.run_number}}")
- name: Print version
shell: cmd
run: |
echo -- version is ${{steps.version.outputs.VERSION}}