Skip to content

Commit

Permalink
Feat: Allow action to commit after workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GBHU753 committed Jul 24, 2024
1 parent a7bbd17 commit 1677dc5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/generate-api-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -14,5 +18,10 @@ jobs:
cmd: install
- name: Generate API Client
run: yarn generate:api-client

- name: Commit new API client
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update API client"
commit_user_name: "github-api-actions[bot]"
commit_user_email: "github-api-actions[bot]@users.noreply.github.com"

5 changes: 1 addition & 4 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,4 @@ yarn-error.log*

# typescript
*.tsbuildinfo
next-env.d.ts

# add api-client to the list of ignored directories
api-client
next-env.d.ts

0 comments on commit 1677dc5

Please sign in to comment.