actions / checkout

Action for checking out a repo

Home Page:https://github.com/features/actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recent update breaks GitVersion

chadgrant opened this issue · comments

Previous config:

    - name: Checkout
       uses: actions/checkout@v4
       with:
         fetch-depth: 0
         ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

     - name: Install GitVersion
       uses: gittools/actions/gitversion/setup@v0
       with:
         versionSpec: "5.x"

     - name: Determine Version
       id: gitversion
       uses: gittools/actions/gitversion/execute@v0
       with:
         useConfigFile: true

Gitversion now errors with "unsupported extension name extensions.worktreeconfig"

I was able to fix it with:

        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

      - name: fix git
        run: |
          git config --unset-all extensions.worktreeconfig || true
          git config --global --list

      - name: Install GitVersion
        uses: gittools/actions/gitversion/setup@v0
        with:
          versionSpec: "5.x"

      - name: Determine Version
        id: gitversion
        uses: gittools/actions/gitversion/execute@v0
        with:
          useConfigFile: true

Workaround: pin workflows to actions/checkout@v4.1.1

Proposed fix: #1692

We have created release v4.1.4 and marked it as pre-release. Absent any other issues, we plan to promote v4.1.4 to v4 and latest by end-of-week.

v4 and latest now point to release v4.1.4