Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/release-post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ secrets.CHECKOUT_TOKEN || github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
token: ${{ secrets.DATAVISYN_BOT_REPO_TOKEN }}
fetch-depth: 0

- name: Create and Push Tag
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:

- name: Merge Main into Develop
run: |
git config user.name "$GITHUB_ACTOR"
git config user.name "$GITHUB_USER"
git config user.email "<>"
git checkout ${{ inputs.develop_branch }}
git fetch origin ${{ inputs.base_branch }}
Expand All @@ -112,6 +112,8 @@ jobs:

- name: Update Package Version for Next Development Cycle
run: |
git config user.name "$GITHUB_USER"
git config user.email "<>"
CURRENT_VERSION=$(jq -r '.version' package.json)
NEW_VERSION=$(echo "$CURRENT_VERSION" | awk -F. -v OFS=. '{$NF += 1 ; print $0"-SNAPSHOT"}')
jq --arg new_version "$NEW_VERSION" '.version = $new_version' package.json > tmp.json && mv tmp.json package.json
Expand Down