diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml index ee30378cc..a94c3c924 100644 --- a/.github/workflows/doxygen.yml +++ b/.github/workflows/doxygen.yml @@ -4,11 +4,11 @@ on: workflow_dispatch: inputs: pr_nr: - description: "pyglotaran branch/tag to run the examples against" + description: "PR number to create doxygen docs for, if omitted current branch is used." required: false default: "" repo: - description: "pyglotaran branch/tag to run the examples against" + description: "Repository doxygen docs for." required: true default: "glotaran/pyglotaran" @@ -52,7 +52,8 @@ jobs: ref = merge_sha_by_pr_nr(int(pr_nr)) else: ref = os.getenv("GITHUB_REF_NAME") - print(f"::set-output name=ref::{ref}") + with open(os.getenv("GITHUB_OUTPUT"), "a", encoding="utf8") as f: + f.writelines([f"ref={ref}"]) - uses: actions/checkout@v3 with: repository: ${{ github.event.inputs.repo }} diff --git a/.github/workflows/pr_benchmark.yml b/.github/workflows/pr_benchmark.yml index 8f9f7d7b4..95167dfd9 100644 --- a/.github/workflows/pr_benchmark.yml +++ b/.github/workflows/pr_benchmark.yml @@ -54,7 +54,7 @@ jobs: asv run upstream/main^..upstream/main --machine gh_action asv run HEAD^..HEAD --machine gh_action asv publish - echo ::set-output name=last_tag::$last_tag + echo "last_tag=$last_tag" >> $GITHUB_OUTPUT - name: Checkout benchmark result repo uses: actions/checkout@v3 diff --git a/.github/workflows/pr_benchmark_reaction.yml b/.github/workflows/pr_benchmark_reaction.yml index 469bfb716..4de406bc9 100644 --- a/.github/workflows/pr_benchmark_reaction.yml +++ b/.github/workflows/pr_benchmark_reaction.yml @@ -49,14 +49,23 @@ jobs: id: bench_diff shell: python run: | + import os from pathlib import Path - comment_file_path = Path("pr-diff-comment.txt") - print(f"::set-output name=comment::{comment_file_path.read_text()}") - comment_file_path.unlink() - origin_pr_nr_file_path = Path("origin_pr_nr.txt") - print(f"::set-output name=pr_nr::{origin_pr_nr_file_path.read_text()}") - origin_pr_nr_file_path.unlink() + with open(os.getenv("GITHUB_OUTPUT"), "a", encoding="utf8") as f: + comment_file_path = Path("pr-diff-comment.txt") + f.writelines( + [ + "comment<