saadmk11 / changelog-ci

Changelog CI is a GitHub Action that enables a project to automatically generate changelogs
https://github.com/marketplace/actions/changelog-ci
MIT License
130 stars 20 forks source link

Dubious ownership in repository at '/github/workspace' #93

Closed tomer-ds closed 1 year ago

tomer-ds commented 1 year ago

Describe the bug

When attempting to build changelog on Release branch I get an error fatal: detected dubious ownership in repository at '/github/workspace'

Your Environment

Contents of Your Changelog-CI Workflow File (.yaml File):

name: Changelog CI

on:
  push:
    branches:
      - hotfix/*
      - release/*
    paths-ignore:
      - "*.md"

jobs:
  generate_changelog:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0

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

      - name: Determine Version
        id: gitversion
        uses: gittools/actions/gitversion/execute@v0.9.15

      - name: Run Changelog CI
        id: changelog-ci
        uses: saadmk11/changelog-ci@v1.0.0
        with:
          config_file: changelog-config.yaml
          release_version: ${{ steps.gitversion.outputs.majorMinorPatch }}
          github_token: ${{ secrets.ACTIONS_AUTH_TOKEN }}

      - name: Get Changelog Output
        run: |
          echo "${{ steps.changelog-ci.outputs.changelog }}"
          echo "${{ steps.changelog-ci.outputs.changelog }}" >> $GITHUB_STEP_SUMMARY

Contents of Changelog-CI Configuration File (If Applicable):

changelog_type: "commit_message"
header_prefix: "Version:"
commit_changelog: true
comment_changelog: false
include_unlabeled_changes: true
unlabeled_group_title: "Changes"
pull_request_title_regex: ".*"
version_regex: ".*"
group_config:
  - title: Bug Fixes
    labels:
      - bug
      - bugfix
  - title: Code Improvements
    labels:
      - improvements
      - enhancement
  - title: New Features
    labels:
      - feature
  - title: Updates
    labels:
      - update
  - title: Dependencies
    labels:
      - dependencies
  - title: Documentation Updates
    labels:
      - docs
      - documentation
      - doc

Expected behavior

Changelog will be generated successfully and committed to the release branch.

Actual behavior

Errors about dubious ownership and lack of git directory

Additional context

Add any other context about the problem here.

image

saadmk11 commented 1 year ago

This issue should be fixed in the latest version of changelog-ci

https://github.com/saadmk11/changelog-ci/releases/tag/v1.1.1

tomer-ds commented 1 year ago

Indeed it is... I was about to try that and I figured I would open the issue first... Live and learn... 🤷🏼‍♂️🤦‍♂️

Many thanks!!!