Skip to content

Commit

Permalink
add action to create PR
Browse files Browse the repository at this point in the history
  • Loading branch information
lyqht committed Jul 20, 2022
1 parent efd34c4 commit 97d7a47
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This workflow is a composite action:

- To generate database types based on the Swagger OpenAPI specification of your Supabase project REST data endpoint, [openapi-typescript](https://github.com/drwpow/openapi-typescript) is used.
- Commit and push github actions to your repo are performed by the [git-auto-commit action](https://github.com/stefanzweifel/git-auto-commit-action).
- Creating the pull request is performed by [pull-request action](https://github.com/repo-sync/pull-request).

## How to use

Expand Down
12 changes: 12 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ runs:
commit_user_name: Supabot
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
commit_author: Supabot <41898282+github-actions[bot]@users.noreply.github.com>
branch: supabot/update-database-types
create_branch: true
- name: Create Pull Request
uses: repo-sync/pull-request@v2
with:
github_token: ${{ github.token }}
source_branch: supabot/update-database-types
destination_branch: "main"
pr_allow_empty: false
pr_title: '[Supabot] Update database type definitions'
pr_body: |
- Auto-generated by [Supabot](https://github.com/lyqht/generate-supabase-db-types-github-action)
branding:
icon: 'activity'
Expand Down

0 comments on commit 97d7a47

Please sign in to comment.