From fce35fe8f54f37f21168f503ecece771cf6da1ff Mon Sep 17 00:00:00 2001 From: Kisaragi Marine Date: Thu, 14 Nov 2024 08:13:35 +0900 Subject: [PATCH] cd: overwrite repository field to express build commit instead of version field --- .github/workflows/zip-vpm.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/zip-vpm.yml b/.github/workflows/zip-vpm.yml index 632dc7d..0fb0d83 100644 --- a/.github/workflows/zip-vpm.yml +++ b/.github/workflows/zip-vpm.yml @@ -22,12 +22,12 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{ github.inputs.tag }} - + - name: Add commit hash to the manifest run: | # moreutils はおそらく追加されない上インストールすると遅いので使わない # see also: https://github.com/actions/runner-images/issues/5498 - jq --arg hash "$(git rev-parse HEAD)" '.version += ("+git." + $hash)' < package.json > package.json.tmp + jq --arg hash "$(git rev-parse HEAD)" '.repository.url = "https://github.com/KisaragiEffective/ResoniteImportHelper/tree/" + $hash' < package.json > package.json.tmp mv package.json.tmp package.json - name: Zip run: |