[2.3.0] 공지 제목 번역 기능 (실험실) #464
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: 쿠링 앱타겟 iOS17에서 빌드하기 | |
on: | |
issue_comment: | |
types: [created, edited] | |
jobs: | |
build: | |
if: github.event.issue.pull_request && contains(github.event.comment.body, '/쿠링') && contains(github.event.comment.body, 'ios17 앱 빌드') | |
runs-on: macos-13 #최신버전 | |
steps: | |
# 빌드 요청 시작 | |
- name: Build iOS17 | |
run: | | |
echo "iOS17 에서 앱 타겟을 빌드합니다." | |
# iOS17 빌드 응답 커멘트 | |
- name: Add Build comment | |
uses: actions/github-script@v5 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: '🔨 iOS 17.0.1 iPhone 15 Pro 에서 쿠링 앱을 빌드합니다.' | |
}) | |
# 코드를 체크아웃 합니다. | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: refs/pull/${{ github.event.issue.number }}/head | |
# Xcode 버전을 설정합니다. | |
- name: Setup Xcode version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.0' | |
# KuringApp 스킴을 빌드합니다. | |
- name: KuringApp 빌드 | |
run: | | |
cd KuringApp | |
xcodebuild build -scheme KuringApp -destination 'platform=iOS Simulator,OS=latest,name=iPhone 15 Pro' -skipMacroValidation | |
# 빌드 성공시 커멘트 | |
- name: Add Build comment | |
uses: actions/github-script@v5 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: '✅ iOS17 에서 앱 타겟을 성공적으로 빌드했습니다.' | |
}) | |
# 빌드 실패시 커멘트 | |
- name: Notify failure | |
uses: actions/github-script@v5 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: '📬 iOS17 에서 앱 타겟 빌드에 실패했습니다. Actions에서 실패 결과를 확인해주세요.' | |
}) | |
if: failure() |