Skip to content

Commit

Permalink
Adjust /generate_dist command
Browse files Browse the repository at this point in the history
  • Loading branch information
elsom25 committed May 2, 2024
1 parent 3266f38 commit 9235e05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/generate_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 9235e05

Please sign in to comment.