diff --git a/.github/workflows/generate_dist.yml b/.github/workflows/generate_dist.yml index a482b51b..f2592b3a 100644 --- a/.github/workflows/generate_dist.yml +++ b/.github/workflows/generate_dist.yml @@ -17,8 +17,8 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event.issue.pull_request && github.event.comment.body == '/generate_dist' }} steps: - - name: Checkout code - uses: actions/checkout@v4 + - name: Checkout PR + run: gh pr checkout ${{ github.event.issue.number }} - name: Set up Ruby uses: ruby/setup-ruby@v1 @@ -38,8 +38,8 @@ jobs: - name: Commit distribution files run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "GitHub Action" + git config --local user.email "action@github.com" git add dist - git commit -m "🤖 Update distribution files" + git commit -m "🤖 Update distribution files" || exit 0 # Exit gracefully if no changes git push