Skip to content

Commit

Permalink
Merge pull request #215 from KisaragiEffective/cd/overwrite-repositor…
Browse files Browse the repository at this point in the history
…y-field
  • Loading branch information
KisaragiEffective authored Nov 13, 2024
2 parents d7fb120 + e04d311 commit 911b54e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/zip-vpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ 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: |
Expand Down

0 comments on commit 911b54e

Please sign in to comment.