mirror of
https://github.com/EbookFoundation/free-programming-books.git
synced 2025-08-31 03:20:07 +02:00
security: set-output
cmd deprecated. Use $GITHUB_OUTPUT
env file (#9287)
* security: `set-output` cmd deprecated. Use `$GITHUB_OUTPUT` env file To avoid untrusted logged data to use `save-state` and `set-output` workflow commands without the intention of the workflow author we have introduced a new set of environment files to manage state and output. Starting 1st June 2023 workflows using `save-state` or `set-output` commands via stdout will fail with an error. https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ * chore: apply fix found at actions/stale#859 * test: fixing report escapes * test: fixing report escapes * test: fixing report escapes * test: fixing report escapes * test: fixing report escapes
This commit is contained in:
6
.github/workflows/detect-conflicting-prs.yml
vendored
6
.github/workflows/detect-conflicting-prs.yml
vendored
@@ -51,10 +51,12 @@ jobs:
|
||||
run: |
|
||||
echo "$INPUT_PRS" \
|
||||
| jq --compact-output --raw-output 'to_entries | map({number: .key, dirty: .value})' \
|
||||
| sed -e 's/^/::set-output name=prs::/'
|
||||
| sed -e 's/^/prs=/' \
|
||||
>> $GITHUB_OUTPUT
|
||||
echo "$INPUT_PRS" \
|
||||
| jq --raw-output 'to_entries | length' \
|
||||
| sed -e 's/^/::set-output name=prs-len::/'
|
||||
| sed -e 's/^/prs-len=/' \
|
||||
>> $GITHUB_OUTPUT
|
||||
env:
|
||||
INPUT_PRS: ${{ steps.pr-labeler.outputs.prDirtyStatuses }}
|
||||
|
||||
|
Reference in New Issue
Block a user