diff options
-rw-r--r-- | .github/workflows/nightly.yml | 4 | ||||
-rw-r--r-- | scripts/dev/recompile_requirements.py | 19 |
2 files changed, 11 insertions, 12 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 073f2c69c..5aaafb666 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -97,8 +97,8 @@ jobs: - name: Gather info id: info run: | - echo "::set-output name=date::$(date +'%Y-%m-%d')" - echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT" + echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" - name: Upload artifacts uses: actions/upload-artifact@v3 with: diff --git a/scripts/dev/recompile_requirements.py b/scripts/dev/recompile_requirements.py index 365f9a51e..ceb978a74 100644 --- a/scripts/dev/recompile_requirements.py +++ b/scripts/dev/recompile_requirements.py @@ -335,16 +335,15 @@ def print_changed_files(): print(changes_text) if utils.ON_CI: - print() - print('::set-output name=changed::' + - files_text.replace('\n', '%0A')) - table_header = [ - '| File | Requirement | old | new |', - '|------|-------------|-----|-----|', - ] - diff_table = '%0A'.join(table_header + - [change.table_str() for change in changes]) - print('::set-output name=diff::' + diff_table) + with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as f: + f.write('changed=' + files_text.replace('\n', '%0A')) + table_header = [ + '| File | Requirement | old | new |', + '|------|-------------|-----|-----|', + ] + diff_table = '%0A'.join( + table_header + [change.table_str() for change in changes]) + f.write(f'diff={diff_table}') def get_host_python(name): |