Skip to content

Commit 7800cc3

Browse files
committed
Validate plugin version
1 parent 44f38fb commit 7800cc3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v*' # Run workflow on version tags, e.g. v1.0.0.
6+
- 'v*.*.*' # Run workflow on version tags, e.g. v1.0.0.
77

88
jobs:
99
release:
@@ -70,6 +70,11 @@ jobs:
7070
echo "::set-output name=archive::${GRAFANA_PLUGIN_ARTIFACT}"
7171
echo "::set-output name=archive-checksum::${GRAFANA_PLUGIN_ARTIFACT_CHECKSUM}"
7272
73+
echo ::set-output name=github-tag::${GITHUB_REF#refs/*/}
74+
75+
- name: Check package version
76+
run: test "v${{ steps.metadata.outputs.version }}" = "${{ steps.metadata.outputs.github-tag }}"
77+
7378
- name: Package plugin
7479
id: package-plugin
7580
run: |

0 commit comments

Comments
 (0)