[Refactor/#431] 이메일을 통한 아티클 조회 메인페이지 조회수 API에 포함되도록 쿼리 수정 #136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sql Explain Hook | |
on: | |
pull_request: | |
types: [ opened ] | |
branches: [ "main", "dev" ] | |
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: Cache Gradle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Jooq Code Generation | |
run: | | |
./gradlew jooqCodegenAll | |
- name: Generate Explain Docs | |
run: | | |
./gradlew api-repo:generateExplainDocs | |
- name: Zip Explain Docs | |
run: | | |
mv ./api-repo/src/test/resources/explain ./explain | |
zip explain-docs.zip ./explain/* | |
- name: Upload Explain Docs | |
run: | | |
curl \ | |
-F 'payload_json={"username": "GitHubAction", "content": "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 |