diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1eeb4d2..1242a13 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,4 +44,4 @@ jobs: git config --global user.name 'github-actions[bot]' git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' git tag -fa ${MAJOR} -m "Update major version tag" - git push origin ${MAJOR} --force \ No newline at end of file + git push origin ${MAJOR} --force diff --git a/action.yml b/action.yml index 8890449..baaee27 100644 --- a/action.yml +++ b/action.yml @@ -43,6 +43,7 @@ runs: - uses: actions/checkout@v3 with: fetch-depth: 0 + ref: ${{ inputs.main-branch }} - name: Check release status id: release-status @@ -65,8 +66,6 @@ runs: env: GH_TOKEN: ${{ inputs.github-token }} run: | - git fetch - git rebase origin/main semantic-release version git fetch --tags for file in ./dist/**