diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-11-03 11:53:28 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-11-03 11:53:28 +0100 |
commit | 0ff0eaa703ad5e72d3c167f63ff8e498ad40ee9b (patch) | |
tree | ebeeb4c6fe5808f4c13f1eeb47b77577e75be334 | |
parent | fd3d23270e46725fc691a6f06c244141fbecc865 (diff) | |
download | qutebrowser-0ff0eaa703ad5e72d3c167f63ff8e498ad40ee9b.tar.gz qutebrowser-0ff0eaa703ad5e72d3c167f63ff8e498ad40ee9b.zip |
ci: Get rid of set-output
Fixes #7439
-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): |