Skip to content

Commit d3b875e

Browse files
committed
Replace set-output with ...>>$GITHUB_OUTPUT
1 parent 216c6c1 commit d3b875e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- name: Get yarn cache directory path
2121
id: yarn-cache-dir-path
22-
run: echo "::set-output name=dir::$(yarn cache dir)"
22+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
2323

2424
- name: Cache yarn cache
2525
uses: actions/cache@v2
@@ -58,20 +58,20 @@ jobs:
5858
export GRAFANA_PLUGIN_TYPE=$(cat dist/plugin.json | jq -r .type)
5959
export GRAFANA_PLUGIN_ARTIFACT=${GRAFANA_PLUGIN_ID}-${GRAFANA_PLUGIN_VERSION}.zip
6060
export GRAFANA_PLUGIN_ARTIFACT_CHECKSUM=${GRAFANA_PLUGIN_ARTIFACT}.md5
61-
62-
echo "::set-output name=plugin-id::${GRAFANA_PLUGIN_ID}"
63-
echo "::set-output name=plugin-version::${GRAFANA_PLUGIN_VERSION}"
64-
echo "::set-output name=plugin-type::${GRAFANA_PLUGIN_TYPE}"
65-
echo "::set-output name=archive::${GRAFANA_PLUGIN_ARTIFACT}"
66-
echo "::set-output name=archive-checksum::${GRAFANA_PLUGIN_ARTIFACT_CHECKSUM}"
67-
68-
echo ::set-output name=github-tag::${GITHUB_REF#refs/*/}
61+
62+
echo "plugin-id=${GRAFANA_PLUGIN_ID}" >> $GITHUB_OUTPUT
63+
echo "plugin-version=${GRAFANA_PLUGIN_VERSION}" >> $GITHUB_OUTPUT
64+
echo "plugin-type=${GRAFANA_PLUGIN_TYPE}" >> $GITHUB_OUTPUT
65+
echo "plugin-type=${GRAFANA_PLUGIN_TYPE}" >> $GITHUB_OUTPUT
66+
echo "archive=${GRAFANA_PLUGIN_ARTIFACT}" >> $GITHUB_OUTPUT
67+
echo "archive-checksum=${GRAFANA_PLUGIN_ARTIFACT_CHECKSUM}" >> $GITHUB_OUTPUT
68+
echo "github-tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
6969
7070
- name: Read changelog
7171
id: changelog
7272
run: |
7373
awk '/^## / {s++} s == 1 {print}' CHANGELOG.md > release_notes.md
74-
echo "::set-output name=path::release_notes.md"
74+
echo "path=release_notes.md" >> $GITHUB_OUTPUT
7575
7676
- name: Check package version
7777
run: if [ "v${{ steps.metadata.outputs.plugin-version }}" != "${{ steps.metadata.outputs.github-tag }}" ]; then printf "\033[0;31mPlugin version doesn't match tag name\033[0m\n"; exit 1; fi
@@ -82,7 +82,7 @@ jobs:
8282
mv dist "${{ steps.metadata.outputs.plugin-id }}"
8383
zip "${{ steps.metadata.outputs.archive }}" "${{ steps.metadata.outputs.plugin-id }}" -r
8484
md5sum "${{ steps.metadata.outputs.archive }}" > "${{ steps.metadata.outputs.archive-checksum }}"
85-
echo "::set-output name=checksum::$(cat \"./${{ steps.metadata.outputs.archive-checksum }}\" | cut -d' ' -f1)"
85+
echo "checksum=$(cat \"./${{ steps.metadata.outputs.archive-checksum }}\" | cut -d' ' -f1)" >> $GITHUB_OUTPUT
8686
8787
- name: Upload artifacts
8888
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)