diff --git a/.github/workflows/check_runner_status.yml b/.github/workflows/check_runner_status.yml index 9bc1616537..3c9d0b5af4 100644 --- a/.github/workflows/check_runner_status.yml +++ b/.github/workflows/check_runner_status.yml @@ -35,7 +35,7 @@ jobs: if: ${{ always() }} run: | offline_runners=$(python3 -c 'fp = open("offline_runners.txt"); failed = fp.read(); fp.close(); print(failed)') - echo "::set-output name=offline_runners::$offline_runners" + echo "offline_runners=$offline_runners" >> $GITHUB_OUTPUT send_results: name: Send results to webhook diff --git a/.github/workflows/self-nightly-scheduled.yml b/.github/workflows/self-nightly-scheduled.yml index c384079951..23cbf787ca 100644 --- a/.github/workflows/self-nightly-scheduled.yml +++ b/.github/workflows/self-nightly-scheduled.yml @@ -83,7 +83,7 @@ jobs: name: Identify models to test working-directory: /transformers/tests run: | - echo "::set-output name=matrix::$(python3 -c 'import os; tests = os.getcwd(); model_tests = os.listdir(os.path.join(tests, "models")); d1 = sorted(list(filter(os.path.isdir, os.listdir(tests)))); d2 = sorted(list(filter(os.path.isdir, [f"models/{x}" for x in model_tests]))); d1.remove("models"); d = d2 + d1; print(d)')" + echo "matrix=$(python3 -c 'import os; tests = os.getcwd(); model_tests = os.listdir(os.path.join(tests, "models")); d1 = sorted(list(filter(os.path.isdir, os.listdir(tests)))); d2 = sorted(list(filter(os.path.isdir, [f"models/{x}" for x in model_tests]))); d1.remove("models"); d = d2 + d1; print(d)')" >> $GITHUB_OUTPUT - name: NVIDIA-SMI run: | diff --git a/.github/workflows/self-past.yml b/.github/workflows/self-past.yml index 411fdecd4c..2debdb692e 100644 --- a/.github/workflows/self-past.yml +++ b/.github/workflows/self-past.yml @@ -92,7 +92,7 @@ jobs: name: Identify models to test run: | cd tests - echo "::set-output name=matrix::$(python3 -c 'import os; tests = os.getcwd(); model_tests = os.listdir(os.path.join(tests, "models")); d1 = sorted(list(filter(os.path.isdir, os.listdir(tests)))); d2 = sorted(list(filter(os.path.isdir, [f"models/{x}" for x in model_tests]))); d1.remove("models"); d = d2 + d1; print(d)')" + echo "matrix=$(python3 -c 'import os; tests = os.getcwd(); model_tests = os.listdir(os.path.join(tests, "models")); d1 = sorted(list(filter(os.path.isdir, os.listdir(tests)))); d2 = sorted(list(filter(os.path.isdir, [f"models/{x}" for x in model_tests]))); d1.remove("models"); d = d2 + d1; print(d)')" >> $GITHUB_OUTPUT run_tests_single_gpu: name: Model tests diff --git a/.github/workflows/self-push-caller.yml b/.github/workflows/self-push-caller.yml index 4c90b13870..994567c5cd 100644 --- a/.github/workflows/self-push-caller.yml +++ b/.github/workflows/self-push-caller.yml @@ -32,7 +32,7 @@ jobs: run: | for file in ${{ steps.changed-files.outputs.all_changed_files }}; do if [ `basename "${file}"` = "setup.py" ]; then - echo ::set-output name=changed::"1" + echo "changed=1" >> $GITHUB_OUTPUT fi done diff --git a/.github/workflows/self-push.yml b/.github/workflows/self-push.yml index b72c5c3cae..dc31332e42 100644 --- a/.github/workflows/self-push.yml +++ b/.github/workflows/self-push.yml @@ -145,8 +145,8 @@ jobs: fi echo $keys echo $test_map - echo "::set-output name=matrix::$keys" - echo "::set-output name=test_map::$test_map" + echo "matrix=$keys" >> $GITHUB_OUTPUT + echo "test_map=$test_map" >> $GITHUB_OUTPUT run_tests_single_gpu: name: Model tests diff --git a/.github/workflows/self-scheduled.yml b/.github/workflows/self-scheduled.yml index 374b57a904..a24c55ed04 100644 --- a/.github/workflows/self-scheduled.yml +++ b/.github/workflows/self-scheduled.yml @@ -82,7 +82,7 @@ jobs: name: Identify models to test working-directory: /transformers/tests run: | - echo "::set-output name=matrix::$(python3 -c 'import os; tests = os.getcwd(); model_tests = os.listdir(os.path.join(tests, "models")); d1 = sorted(list(filter(os.path.isdir, os.listdir(tests)))); d2 = sorted(list(filter(os.path.isdir, [f"models/{x}" for x in model_tests]))); d1.remove("models"); d = d2 + d1; print(d)')" + echo "matrix=$(python3 -c 'import os; tests = os.getcwd(); model_tests = os.listdir(os.path.join(tests, "models")); d1 = sorted(list(filter(os.path.isdir, os.listdir(tests)))); d2 = sorted(list(filter(os.path.isdir, [f"models/{x}" for x in model_tests]))); d1.remove("models"); d = d2 + d1; print(d)')" >> $GITHUB_OUTPUT - name: NVIDIA-SMI run: |