ci: Removing set-output in CI workflows as it's a deprecated command. (#29279)

Using GITHUB_OUTPUT to save environment variables instead. This is to
remove lots of warnings in the CI run and make it easier to read the
summary.
This commit is contained in:
Arpit Mohan 2023-12-03 12:46:56 +05:30 committed by GitHub
parent 08f625e754
commit 58c62e0bbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 6 deletions

View File

@ -30,7 +30,7 @@ jobs:
echo "No files changed in the specified folder"
exit 1
else
echo "::set-output name=files_changed_count::$filesChangedCount"
echo "files_changed_count=$filesChangedCount" >> $GITHUB_OUTPUT
fi
- name: Check if PR is merged

View File

@ -133,7 +133,7 @@ jobs:
# Timestamp will be used to create cache key
- id: timestamp
run: echo "::set-output name=timestamp::$(date +'%Y-%m-%dT%H:%M:%S')"
run: echo "timestamp=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_OUTPUT
# In case this is second attempt try restoring status of the prior attempt from cache
- name: Restore the previous run result
@ -389,6 +389,7 @@ jobs:
CYPRESS_S3_SECRET: ${{ secrets.CYPRESS_S3_SECRET }}
CYPRESS_grepTags: ${{ inputs.tags }} # This is a comma separated list of tags to run a subset of the suite
CYPRESS_SKIP_FLAKY: true
DEBUG: "@cypress/grep"
with:
browser: ${{ env.BROWSER_PATH }}
install: false

View File

@ -67,7 +67,7 @@ jobs:
# Timestamp will be used to create cache key
- id: timestamp
run: echo "::set-output name=timestamp::$(date +'%Y-%m-%dT%H:%M:%S')"
run: echo "timestamp=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_OUTPUT
# In case this is second attempt try restoring status of the prior attempt from cache
- name: Restore the previous run result

View File

@ -437,5 +437,5 @@ jobs:
# Set status = success
- name: Save the status of the run
run: |
echo "::set-output name=run_result::success"
echo "run_result=success" >> $GITHUB_OUTPUT
echo "success" > ~/run_result

View File

@ -129,7 +129,7 @@ jobs:
# Timestamp will be used to create cache key
- id: timestamp
run: echo "::set-output name=timestamp::$(date +'%Y-%m-%dT%H:%M:%S')"
run: echo "timestamp=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_OUTPUT
# In case this is second attempt try restoring status of the prior attempt from cache
- name: Restore the previous run result

View File

@ -67,7 +67,7 @@ jobs:
# Timestamp will be used to create cache key
- id: timestamp
run: echo "::set-output name=timestamp::$(date +'%Y-%m-%dT%H:%M:%S')"
run: echo "timestamp=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_OUTPUT
# In case this is second attempt try restoring status of the prior attempt from cache
- name: Restore the previous run result