Skip to content

Commit f451332

Browse files
Chore: Switching to new output format for detect breaking changes action (grafana#58516)
* Switching to new output format for detect breaking changes action * linting: wrap $GITHUB_OUTPUT with double quotes * linting: fix shellcheck issues in the right place 🤦‍♂️ Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
1 parent 181640b commit f451332

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/detect-breaking-changes-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- name: Get yarn cache directory path
2828
id: yarn-cache-dir-path
29-
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
29+
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
3030

3131
- name: Restore yarn cache
3232
uses: actions/cache@v3.0.11
@@ -74,7 +74,7 @@ jobs:
7474

7575
- name: Get yarn cache directory path
7676
id: yarn-cache-dir-path
77-
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
77+
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
7878

7979
- name: Restore yarn cache
8080
uses: actions/cache@v3.0.11

scripts/check-breaking-changes.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ while IFS=" " read -r -a package; do
4848
done <<< "$PACKAGES"
4949

5050
# "Export" the message to an environment variable that can be used across Github Actions steps
51-
echo "::set-output name=is_breaking::$EXIT_CODE"
52-
echo "::set-output name=message::$GITHUB_MESSAGE"
51+
echo "is_breaking=$EXIT_CODE" >> "$GITHUB_OUTPUT"
52+
echo "message=$GITHUB_MESSAGE" >> "$GITHUB_OUTPUT"
5353

5454
# We will exit the workflow accordingly at another step
5555
exit 0

0 commit comments

Comments
 (0)