@@ -24,25 +24,21 @@ jobs:
2424
2525 - name : Get yarn cache directory path
2626 id : yarn-cache-dir-path
27- run : echo "::set-output name= dir:: $(yarn cache dir)"
27+ run : echo "dir= $(yarn cache dir)" >> $GITHUB_OUTPUT
2828
2929 - name : Cache yarn cache
30- uses : actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # 3.3 .3
30+ uses : actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2 .3
3131 id : cache-yarn-cache
3232 with :
3333 path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
3434 key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
35- restore-keys : |
36- ${{ runner.os }}-yarn-
3735
3836 - name : Cache node_modules
3937 id : cache-node-modules
40- uses : actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # 3.3 .3
38+ uses : actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2 .3
4139 with :
4240 path : node_modules
43- key : ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
44- restore-keys : |
45- ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-
41+ key : ${{ runner.os }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
4642
4743 - name : Install dependencies
4844 run : yarn install --frozen-lockfile;
5854 run : |
5955 if [ -f "Magefile.go" ]
6056 then
61- echo "::set-output name= has-backend:: true"
57+ echo "has-backend= true" >> $GITHUB_OUTPUT
6258 fi
6359
6460 - name : Test backend
@@ -91,19 +87,19 @@ jobs:
9187 export GRAFANA_PLUGIN_ARTIFACT=${GRAFANA_PLUGIN_ID}-${GRAFANA_PLUGIN_VERSION}.zip
9288 export GRAFANA_PLUGIN_ARTIFACT_CHECKSUM=${GRAFANA_PLUGIN_ARTIFACT}.md5
9389
94- echo "::set-output name= plugin-id:: ${GRAFANA_PLUGIN_ID}"
95- echo "::set-output name= plugin-version:: ${GRAFANA_PLUGIN_VERSION}"
96- echo "::set-output name= plugin-type:: ${GRAFANA_PLUGIN_TYPE}"
97- echo "::set-output name= archive:: ${GRAFANA_PLUGIN_ARTIFACT}"
98- echo "::set-output name= archive-checksum:: ${GRAFANA_PLUGIN_ARTIFACT_CHECKSUM}"
90+ echo "plugin-id= ${GRAFANA_PLUGIN_ID}" >> $GITHUB_OUTPUT
91+ echo "plugin-version= ${GRAFANA_PLUGIN_VERSION}" >> $GITHUB_OUTPUT
92+ echo "plugin-type= ${GRAFANA_PLUGIN_TYPE}" >> $GITHUB_OUTPUT
93+ echo "archive= ${GRAFANA_PLUGIN_ARTIFACT}" >> $GITHUB_OUTPUT
94+ echo "archive-checksum= ${GRAFANA_PLUGIN_ARTIFACT_CHECKSUM}" >> $GITHUB_OUTPUT
9995
100- echo ::set-output name= github-tag:: ${GITHUB_REF#refs/*/}
96+ echo " github-tag= ${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
10197
10298 - name : Read changelog
10399 id : changelog
104100 run : |
105101 awk '/^## / {s++} s == 1 {print}' CHANGELOG.md > release_notes.md
106- echo "::set-output name= path:: release_notes.md"
102+ echo "path= release_notes.md" >> $GITHUB_OUTPUT
107103
108104 - name : Check package version
109105 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
@@ -114,7 +110,7 @@ jobs:
114110 mv dist ${{ steps.metadata.outputs.plugin-id }}
115111 zip ${{ steps.metadata.outputs.archive }} ${{ steps.metadata.outputs.plugin-id }} -r
116112 md5sum ${{ steps.metadata.outputs.archive }} > ${{ steps.metadata.outputs.archive-checksum }}
117- echo "::set-output name= checksum:: $(cat ./${{ steps.metadata.outputs.archive-checksum }} | cut -d' ' -f1)"
113+ echo "checksum= $(cat ./${{ steps.metadata.outputs.archive-checksum }} | cut -d' ' -f1)" >> $GITHUB_OUTPUT
118114
119115 - name : Lint plugin
120116 run : |
@@ -151,7 +147,7 @@ jobs:
151147 - name : Add checksum to release
152148 id : upload-checksum-asset
153149 # caution action not maintained since 2021
154- uses : actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
150+ uses : actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
155151 env :
156152 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
157153 with :
0 commit comments