title: How can I edit and delete files with github actions Workflow and push changes in github in develop branch
body: <p>I would delete some files in my Github repository with Github Actions workflow, then commit and push my changes in my Github repository, I try something like this :</p>
  <pre><code>name: Template Cleanup
  on:
    workflow_dispatch:
  jobs:
    clean:
      runs-on: ubuntu-latest
      steps:
      - name: Clean secret management files
        run: |
          rm -f \
            .github/file.yaml \
            .github/file2.yaml \
            .github/.gpg \
            .github/workflows/workflow.yaml \
            .sops.yaml
      - name: Commit files and push it
        run: |
          git config --global user.email &quot;email@gmail.com&quot;
          git config --global user.name &quot;github actions&quot;
          git add .
          git commit -m &quot;chore: clean repo&quot;
          git push
  </code></pre>
  <p>but I have Error</p>
  <pre><code>  shell: /usr/bin/bash -e {0}
  fatal: not a git repository (or any of the parent directories): .git
  </code></pre>
  <p>Do you know how can I do that ? thanks</p>