Skip to content

Commit

Permalink
feat: sql-explain-hook 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
belljun3395 committed Jul 23, 2024
1 parent b787842 commit 70e4855
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/sql-explain-hook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Sql Explain Hook

on:
pull_request:
branches: ["main"]
workflow_dispatch:

env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}


jobs:
sql-explain-hook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"

- name: Jooq Code Generation
run: |
./gradlew --info jooqCodegenAll
- name: Generate Explain Docs
run: |
./gradlew --info api-repo:generateExplainDocs
- name: Zip Explain Docs
run: |
zip explain-docs.zip ./api-repo/src/test/resources/explain/*
- name: Upload Explain Docs
run: |
curl \
-F 'payload_json={"username": "GitHubAction", "content": "SqlExplainHook - Check the PR here: [PR #${{ github.event.pull_request.number }}](https://github.com/YAPP-Github/24th-Web-Team-1-BE/pull/${{ github.event.pull_request.number }})"}' \
-F "[email protected]" \
$DISCORD_WEBHOOK

0 comments on commit 70e4855

Please sign in to comment.