Skip to content

Commit cc4e5cc

Browse files
committed
test actions
1 parent 4c80e81 commit cc4e5cc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/main-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ permissions:
1515

1616
jobs:
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
@@ -40,7 +40,7 @@ jobs:
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
@@ -82,4 +82,4 @@ jobs:
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

0 commit comments

Comments
 (0)