mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Update release.yaml
This commit is contained in:
parent
8f444cb2a3
commit
76ebb1aa27
1 changed files with 7 additions and 7 deletions
14
.github/workflows/release.yaml
vendored
14
.github/workflows/release.yaml
vendored
|
|
@ -14,13 +14,13 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Extract branch name
|
||||
id: extract_branch
|
||||
run: echo "BRANCH_NAME=$(git branch -r --contains ${GITHUB_SHA} | grep -v 'detached' | sed 's|origin/||' | xargs)" >> $GITHUB_ENV
|
||||
- name: Extract version from tag
|
||||
id: extract_version
|
||||
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||
|
||||
- name: Update manifest.json
|
||||
run: |
|
||||
VERSION=${GITHUB_REF#refs/tags/}
|
||||
VERSION=${{ env.VERSION }}
|
||||
jq --arg version "$VERSION" '.version = $version' manifest.json > manifest-temp.json
|
||||
mv manifest-temp.json manifest.json
|
||||
|
||||
|
|
@ -28,9 +28,9 @@ jobs:
|
|||
run: |
|
||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git add manifest.json
|
||||
git commit -m "Update manifest.json to version $VERSION"
|
||||
git push origin HEAD:${{ env.BRANCH_NAME }}
|
||||
git add manifest-beta.json
|
||||
git commit -m "Update manifest-beta.json to version $VERSION"
|
||||
git push origin main
|
||||
|
||||
- name: npm build
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue