|
19 | 19 |
|
20 | 20 | - name: Get yarn cache directory path |
21 | 21 | id: yarn-cache-dir-path |
22 | | - run: echo "::set-output name=dir::$(yarn cache dir)" |
| 22 | + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT |
23 | 23 |
|
24 | 24 | - name: Cache yarn cache |
25 | 25 | uses: actions/cache@v2 |
@@ -58,20 +58,20 @@ jobs: |
58 | 58 | export GRAFANA_PLUGIN_TYPE=$(cat dist/plugin.json | jq -r .type) |
59 | 59 | export GRAFANA_PLUGIN_ARTIFACT=${GRAFANA_PLUGIN_ID}-${GRAFANA_PLUGIN_VERSION}.zip |
60 | 60 | 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 |
69 | 69 |
|
70 | 70 | - name: Read changelog |
71 | 71 | id: changelog |
72 | 72 | run: | |
73 | 73 | 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 |
75 | 75 |
|
76 | 76 | - name: Check package version |
77 | 77 | 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 | 82 | mv dist "${{ steps.metadata.outputs.plugin-id }}" |
83 | 83 | zip "${{ steps.metadata.outputs.archive }}" "${{ steps.metadata.outputs.plugin-id }}" -r |
84 | 84 | 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 |
86 | 86 |
|
87 | 87 | - name: Upload artifacts |
88 | 88 | uses: actions/upload-artifact@v2 |
|
0 commit comments