File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ permissions:
1515
1616jobs :
1717 tag-version :
18- if : github.event.pull_request.merged == true
18+ # if: github.event.pull_request.merged == true
1919 runs-on :
2020 group : databricks-solutions-protected-runner-group
2121
2222 steps :
2323 - name : Checkout repo
2424 uses : actions/checkout@v4
2525 with :
26- ref : main
26+ # ref: main
2727 fetch-depth : 0
2828
2929 - name : Read current version
4040 - name : Determine version bump from branch name
4141 id : bump
4242 run : |
43- BRANCH="${{ github.event.pull_request.head.ref }}"
43+ BRANCH="${{ github.event.pull_request.head.ref || github.ref_name }}"
4444 BRANCH_LOWER=$(echo "$BRANCH" | tr '[:upper:]' '[:lower:]')
4545 echo "Merged branch: $BRANCH (normalized: $BRANCH_LOWER)"
4646
8282 git add VERSION
8383 git commit -m "Bump version to $NEW_VERSION"
8484 git tag "v$NEW_VERSION"
85- git push origin main --tags
85+ git push origin HEAD --tags
You can’t perform that action at this time.
0 commit comments