diff --git a/action.yml b/action.yml index 5bc1646..2584435 100644 --- a/action.yml +++ b/action.yml @@ -20,6 +20,8 @@ runs: steps: - name: Checkout repo uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Checking if ran on the dev branch run: | if [[ "${{ github.ref }}" != refs/heads/dev ]]; then @@ -70,10 +72,14 @@ runs: log_info "Pushing new tag" git fetch git tag -a "v${NEW_VERSION}" -m "Release version ${NEW_VERSION}" - git push origin "v${NEW_VERSION}" + #git push origin "v${NEW_VERSION}" - name: Fast forwarding master branch to dev run: | log_info "Fast-forwarding master to dev" git checkout master - git merge --ff-only dev + git fetch origin dev + git rev-list master + log_info "dev" + git rev-list origin/dev + git merge --ff-only origin/dev git push