Skip to content

Commit 0626afe

Browse files
authored
Feat/test (#4)
* 번역 workflow 자동화 * 번역 workflow 자동화 * chore: add English translations for PR #3 * 번역 workflow 자동화 * 번역 workflow 자동화 * 번역 workflow 자동화
1 parent a3b09da commit 0626afe

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

.github/workflows/jekyll-docker.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
name: Build and Deploy to GitHub Pages
22

33
on:
4-
push:
5-
branches: [ "main" ]
6-
workflow_run:
7-
workflows: ["Translate new posts to English"]
8-
types: [completed]
4+
pull_request:
5+
types: [closed]
96

107
# GitHub Pages에 배포하기 위한 권한 설정
118
permissions:
@@ -20,7 +17,7 @@ concurrency:
2017

2118
jobs:
2219
build:
23-
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
20+
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' }}
2421
runs-on: ubuntu-latest
2522

2623
steps:
@@ -46,7 +43,7 @@ jobs:
4643
url: ${{ steps.deployment.outputs.page_url }}
4744
runs-on: ubuntu-latest
4845
needs: build
49-
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
46+
if: ${{ github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' }}
5047

5148
steps:
5249
- name: Deploy to GitHub Pages

.github/workflows/translate-to-english.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
name: Translate new posts to English
22

33
on:
4-
pull_request_target:
5-
types: [closed]
4+
pull_request:
5+
types: [opened, synchronize, reopened]
66

77
permissions:
88
contents: write
99

1010
jobs:
1111
translate:
12-
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
1312
runs-on: ubuntu-latest
1413
steps:
15-
- name: Checkout main
14+
- name: Checkout PR branch
1615
uses: actions/checkout@v4
1716
with:
18-
ref: main
17+
ref: ${{ github.head_ref }}
1918

2019
- name: Get changed files from PR
2120
id: changes

_posts/2025-07-03-actions-runner-controller.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,4 +285,3 @@ docker run -it \
285285
ARC를 사용하면 GitHub에서 제공하는 Runner를 사용할 때의 비싼 비용 문제와, 직접 VM을 관리하며 Runner를 운영할 때의 비효율성을 모두 해결할 수 있습니다. 특히 GPU가 필요하거나, 복잡한 의존성을 가진 MLOps CI/CD 환경을 구축할 때 ARC는 매우 강력한 도구가 됩니다.
286286

287287
초기 설정 과정이 다소 복잡하게 느껴질 수 있지만, 한번 구축해두면 CI/CD 비용을 크게 절감하고 운영 부담을 덜어주므로 MLOps를 고민하고 있다면 꼭 한번 도입을 검토해보시길 바랍니다.
288-

0 commit comments

Comments
 (0)