Skip to content

Commit af1cf76

Browse files
committed
ref from current branch
1 parent a2aab69 commit af1cf76

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/prepare.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ jobs:
6363
- name: Checkout repository
6464
uses: actions/checkout@v6
6565
with:
66-
# ref: ${{ inputs.ref || github.ref }}
67-
ref: main
66+
ref: ${{ inputs.ref || github.ref }}
6867
token: ${{ secrets.GITHUB_TOKEN }}
6968
fetch-depth: 0
7069

@@ -88,8 +87,7 @@ jobs:
8887
id: version
8988
run: |
9089
COMMIT_HASH=$(git rev-parse --short HEAD)
91-
# GIT_BRANCH=${GITHUB_REF_NAME}
92-
GIT_BRANCH=main
90+
GIT_BRANCH=${GITHUB_REF_NAME}
9391
BUILD_TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
9492
9593
# Check if semantic-release published a new version

0 commit comments

Comments
 (0)