Skip to content

Commit

Permalink
Merge pull request #128 from datavisyn/vdelev_autorelease_fix2
Browse files Browse the repository at this point in the history
remove github.token check, use bot repo token always
  • Loading branch information
dvvanessastoiber authored Dec 9, 2024
2 parents 6943025 + 94718fd commit 8b286a8
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 8b286a8

Please sign in to comment.