Skip to content

Commit 6b09d0b

Browse files
committed
Replace set-output
1 parent 037c8dc commit 6b09d0b

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/black-command.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
# Execute black in check mode
2424
- name: Black
2525
id: black
26-
run: echo ::set-output name=format::$(black --check --quiet . || echo "true")
26+
run: |
27+
format=$(black --check --quiet . || echo "true")
28+
echo "format=$format" >> $GITHUB_OUTPUT
2729
2830
# Execute black and commit the change to the PR branch
2931
- name: Commit to the PR branch

.github/workflows/hello-workflow-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Create URL to the run output
3030
id: vars
31-
run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
31+
run: echo "run-url=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_OUTPUT
3232

3333
- name: Create comment
3434
uses: peter-evans/create-or-update-comment@v2

.github/workflows/hello-world-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- name: Create URL to the run output
1818
id: vars
19-
run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
19+
run: echo "run-url=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_OUTPUT
2020

2121
- name: Create comment
2222
uses: peter-evans/create-or-update-comment@v2

.github/workflows/reset-demo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
if [[ $commit_msg =~ "[autopep8-command]" ||
2323
$commit_msg =~ "[black-command]" ]]
2424
then
25-
echo ::set-output name=revert::true
25+
echo "revert=true" >> $GITHUB_OUTPUT
2626
fi
2727
2828
# Revert the last commit to the PR branch

0 commit comments

Comments
 (0)