mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Update beta-release.yaml
This commit is contained in:
parent
f8fa1dca70
commit
1a4a71f93a
1 changed files with 21 additions and 2 deletions
23
.github/workflows/beta-release.yaml
vendored
23
.github/workflows/beta-release.yaml
vendored
|
|
@ -30,13 +30,13 @@ jobs:
|
|||
RELEASE_VERSION=${VERSION%-beta}
|
||||
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Update manifest-beta.json
|
||||
- name: Update manifest-beta.json in current branch
|
||||
run: |
|
||||
VERSION=${{ env.VERSION }}
|
||||
jq --arg version "$VERSION" '.version = $version' manifest-beta.json > manifest-beta-temp.json
|
||||
mv manifest-beta-temp.json manifest-beta.json
|
||||
|
||||
- name: Commit and push changes
|
||||
- name: Commit and push changes in current branch
|
||||
run: |
|
||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
|
|
@ -44,6 +44,25 @@ jobs:
|
|||
git commit -m "Update manifest-beta.json to version $VERSION"
|
||||
git push origin ${{ github.ref_name }}
|
||||
|
||||
- name: Switch to main branch
|
||||
run: |
|
||||
git checkout main
|
||||
git pull origin main
|
||||
|
||||
- name: Update manifest-beta.json in main branch
|
||||
run: |
|
||||
VERSION=${{ env.VERSION }}
|
||||
jq --arg version "$VERSION" '.version = $version' manifest-beta.json > manifest-beta-temp.json
|
||||
mv manifest-beta-temp.json manifest-beta.json
|
||||
|
||||
- name: Commit and push changes in main branch
|
||||
run: |
|
||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git add manifest-beta.json
|
||||
git commit -m "Update manifest-beta.json to version $VERSION in main branch"
|
||||
git push origin main
|
||||
|
||||
- name: npm build
|
||||
run: |
|
||||
npm install
|
||||
|
|
|
|||
Loading…
Reference in a new issue