Skip to content

Commit f156439

Browse files
committed
Stop using deprecated set-output in GHA
1 parent db6c4d0 commit f156439

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/migration-sql-comment.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ jobs:
4141
- name: Get data from artifact
4242
id: get-data
4343
run: |
44-
echo ::set-output name=pull_id::$(</tmp/migration-sql-data/pull-request-id)
44+
echo "pull_id=$(</tmp/migration-sql-data/pull-request-id)" >> $GITHUB_OUTPUT
4545
if [ -f /tmp/migration-sql-data/upgrade.sql ]; then
4646
sql_command=$(</tmp/migration-sql-data/upgrade.sql)
4747
if [ ! -z "$sql_command" ] ; then
48-
echo ::set-output name=sql::$sql_command
48+
echo "sql=$sql_command" >> $GITHUB_OUTPUT
4949
fi
5050
fi
5151

.github/workflows/migration-sql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Check if any migrations changed
2828
id: migrations-changed
2929
run: |
30-
echo ::set-output name=changed::${{ steps.get-changed-files.outputs.files_created != '[]' || steps.get-changed-files.outputs.files_updated != '[]' || steps.get-changed-files.outputs.files_deleted != '[]' }}
30+
echo changed=${{ steps.get-changed-files.outputs.files_created != '[]' || steps.get-changed-files.outputs.files_updated != '[]' || steps.get-changed-files.outputs.files_deleted != '[]' }} >> $GITHUB_OUTPUT
3131
3232
- name: Setup venv and config file
3333
if: steps.migrations-changed.outputs.changed == 'true'

0 commit comments

Comments
 (0)