Skip to content

Commit

Permalink
fix: add correct ref to main, avoid fetching before semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo4diani committed Aug 13, 2023
1 parent 7fb3cc6 commit ef59538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
git push origin ${MAJOR} --force
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ runs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ inputs.main-branch }}

- name: Check release status
id: release-status
Expand All @@ -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/**
Expand Down

0 comments on commit ef59538

Please sign in to comment.