Skip to content

Commit cd6d04d

Browse files
utzcozrlazo
andauthored
ci: Migrate set-output to GITHUB_OUTPUT (#5189)
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ Signed-off-by: utzcoz <[email protected]> Co-authored-by: Rodrigo Lazo <[email protected]>
1 parent d86eb6f commit cd6d04d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- id: changed-modules
3232
run: |
3333
git diff --name-only HEAD~1 | xargs printf -- '--changed-git-paths %s\n' | xargs ./gradlew writeChangedProjects --output-file-path=modules.json
34-
echo ::set-output name=modules::$(cat modules.json)
34+
echo modules=$(cat modules.json) >> $GITHUB_OUTPUT
3535
3636
unit_tests:
3737
name: "Unit Tests"

.github/workflows/update-cpp-sdk-on-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
# Query the git history for all gradle.properties files changed by this push.
3636
# Then, check the diff to see if any "latestReleasedVersion=" lines changed.
3737
if (git diff '${{ github.event.before }}' -- '**/gradle.properties' | grep -q '^[-+]latestReleasedVersion='); then
38-
echo "::set-output name=released_version_changed::1"
38+
echo "released_version_changed=1" >> $GITHUB_OUTPUT
3939
else
4040
echo "No change to latestReleasedVersion detected since ${{ github.event.before }}"
4141
fi

0 commit comments

Comments
 (0)