From adb49f3cb9d607db84e7e7956dbda3d0c5988b33 Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Fri, 13 Dec 2024 15:50:23 -0800 Subject: [PATCH] Python: Fix set-env not allow in workflow (#9973) ### Motivation and Context `set-env` command is disabled in our workflow. ![image](https://github.com/user-attachments/assets/a6813291-e58f-4691-ae05-efd35c04ec15) ### Description Use `$GITHUB_ENV` instead. ### Contribution Checklist - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone :smile: Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com> --- .github/workflows/python-test-coverage-report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test-coverage-report.yml b/.github/workflows/python-test-coverage-report.yml index 67c848609f6b..f63b81c18d77 100644 --- a/.github/workflows/python-test-coverage-report.yml +++ b/.github/workflows/python-test-coverage-report.yml @@ -32,7 +32,7 @@ jobs: run: | PR_NUMBER=$(cat pr_number) echo "PR number: $PR_NUMBER" - echo "::set-env name=PR_NUMBER::$PR_NUMBER" + echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV - name: Pytest coverage comment id: coverageComment uses: MishaKav/pytest-coverage-comment@main