ci: append git SHA to manifest version in PR builds #14

Merged
deluan merged 2 commits from append-git-sha-to-pr-version into main 2026-02-09 12:28:18 -07:00
Showing only changes of commit 8e78f0b7f1 - Show all commits
+6
View File
@@ -30,6 +30,12 @@ jobs:
- name: Run tests
run: make test
- name: Append git SHA to version
if: github.event_name == 'pull_request'
run: |
SHA=$(echo "${{ github.event.pull_request.head.sha }}" | cut -c1-7)
jq --arg sha "$SHA" '.version = .version + "-" + $sha' manifest.json > manifest.tmp && mv manifest.tmp manifest.json
- name: Build and package plugin
run: make package