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 2e4cc08 commit d785b73
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/generate_dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit d785b73

Please sign in to comment.