feat: update workflows

* build images with automatic tags
* separate staging and production deployment
* reuse workflows
This commit is contained in:
wancat committed 2023-11-18 18:05:42 +08:00
1 parent 81581c4635
commit 7d25c7efaa
8 files changed
+197 -118

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
name: Pull Request Workflow
on:
pull_request:
jobs:
ci-checks:
uses: ./.github/workflows/ci-checks.yml
code_review:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Code Review GPT
uses: mattzcarey/code-review-gpt@v0.1.4-alpha
with:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
MODEL: 'gpt-4-1106-preview'
GITHUB_TOKEN: ${{ github.token }}
build:
uses: ./.github/workflows/build.yml
needs: ci-checks