Skip to content

Commit 61e9b26

Browse files
authored
Merge pull request #102 from backstage/blam/remove-deprecated-set-output
remove deprecated `::set-output` from workflows
2 parents 6bae71a + 7a5730a commit 61e9b26

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/pr-review-comment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
}
3232
3333
const prNumber = artifact.name.slice('pr_number-'.length)
34-
console.log(`::set-output name=pr-number::${prNumber}`);
34+
core.setOutput('pr-number', prNumber);
3535
3636
- uses: backstage/actions/re-review@v0.5.12
3737
with:

yarn-install/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ outputs:
1212
description: The location of the global yarn cache
1313
value: ${{ steps.yarn-cache.outputs.dir }}
1414
runs:
15-
using: "composite"
15+
using: 'composite'
1616
steps:
1717
# Cache every node_modules folder inside the monorepo
1818
- name: cache all node_modules
@@ -30,7 +30,7 @@ runs:
3030
- name: find location of global yarn cache
3131
id: yarn-cache
3232
if: steps.cache-modules.outputs.cache-hit != 'true'
33-
run: echo ::set-output name=dir::$([[ "$(yarn --version)" =~ "1.*" ]] && yarn cache dir || yarn config get cacheFolder)
33+
run: echo "dir=$([[ "$(yarn --version)" =~ "1.*" ]] && yarn cache dir || yarn config get cacheFolder)" >> $GITHUB_OUTPUT
3434
shell: bash
3535

3636
- name: cache global yarn cache
@@ -40,7 +40,7 @@ runs:
4040
path: ${{ steps.yarn-cache.outputs.dir }}
4141
key: ${{ inputs.cache-prefix }}-yarn-${{ hashFiles('yarn.lock') }}
4242
restore-keys: |
43-
${{ inputs.cache-prefix }}-yarn-
43+
${{ inputs.cache-prefix }}-yarn-
4444
4545
- name: yarn install
4646
if: steps.cache-modules.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)