We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dd7f1c commit 94476a6Copy full SHA for 94476a6
1 file changed
.github/workflows/release-wporg.yml
@@ -33,10 +33,18 @@ jobs:
33
sparse-checkout: bin/
34
sparse-checkout-cone-mode: false
35
36
+ - name: Resolve tag
37
+ id: resolve
38
+ run: |
39
+ TAG="${{ inputs.tag }}"
40
+ # Ensure the tag has a "v" prefix.
41
+ [[ "$TAG" == v* ]] || TAG="v$TAG"
42
+ echo "tag=$TAG" >> $GITHUB_OUTPUT
43
+
44
- name: Download plugin zip from release
45
env:
46
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- TAG: ${{ inputs.tag }}
47
+ TAG: ${{ steps.resolve.outputs.tag }}
48
run: |
49
gh release download "$TAG" \
50
--repo "${{ github.repository }}" \
@@ -46,7 +54,7 @@ jobs:
54
55
- name: Verify release metadata
56
57
58
51
59
VERSION="${TAG#v}"
52
60
bash bin/verify-release-metadata.sh plugin-sqlite-database-integration "$VERSION"
0 commit comments