diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1b949e..7cb2e7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-tags: true - ref: ${{ github.ref }} + ref: ${{ github.head_ref }} fetch-depth: 0 - name: setup git @@ -74,9 +74,9 @@ jobs: - name: Create Tag if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' run: | - if [ "${{ github.ref }}" == "refs/heads/master" ]; then + if [ "${{ github.head_ref }}" == "master" ]; then git tag ${{ steps.git_version.outputs.version }} - elif [ "${{ github.ref }}" == "refs/heads/dev" ]; then + elif [ "${{ github.head_ref }}" == "dev" ]; then git tag ${{ steps.git_version.outputs.version }}-rc fi