From 5a3bef74b8f2e7b3a242a3507f21a525792eab5b Mon Sep 17 00:00:00 2001 From: Jesse McGinnis Date: Thu, 2 May 2024 15:22:05 -0400 Subject: [PATCH] Adjust /generate_dist command --- .github/workflows/generate_dist.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate_dist.yml b/.github/workflows/generate_dist.yml index a482b51b..11fa8ea6 100644 --- a/.github/workflows/generate_dist.yml +++ b/.github/workflows/generate_dist.yml @@ -15,10 +15,12 @@ permissions: jobs: generate_dist: runs-on: ubuntu-latest - if: ${{ github.event.issue.pull_request && github.event.comment.body == '/generate_dist' }} + if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/generate_dist') }} steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.sha }} - name: Set up Ruby uses: ruby/setup-ruby@v1 @@ -38,8 +40,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