When I open a PR from feat branch to main, github action will run. I can see the files changed but during the autocommit stage I get the following.
Filename: artefact.txt
Index Status: ?
Tree Status: ?
Filename: artefact.txt
-----------------------------
No changes detected, exiting
My github action:
name: fmt
on:
pull_request:
branches:
- main
jobs:
generate-txt:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
# Run steps that make changes to the local repo here.
# Commit all changed files back to the repository
- uses: planetscale/[email protected]
with:
commit_message: "generate txt"
repo: ${{ github.repository }}
branch: ${{ github.head_ref || github.ref_name }}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Somehow it detectes the filename but index and tree status is ?
My repository is private under an organization. Any possible rootcause to this behavior? Maybe some organization github enterprise repository setting that is might contribute to this issue.
I chanced upon this article https://groups.google.com/g/git-for-windows/c/TdM_VLjK8AA regarding git config -global -add safe.directory "$GITHUB_WORKSPACE" line in the action shell script. Maybe it is related to the issue.
When I open a PR from feat branch to main, github action will run. I can see the files changed but during the autocommit stage I get the following.
My github action:
Somehow it detectes the filename but index and tree status is
?My repository is private under an organization. Any possible rootcause to this behavior? Maybe some organization github enterprise repository setting that is might contribute to this issue.
I chanced upon this article https://groups.google.com/g/git-for-windows/c/TdM_VLjK8AA regarding git config -global -add safe.directory "$GITHUB_WORKSPACE" line in the action shell script. Maybe it is related to the issue.