Skip to content

Commit 5993ddb

Browse files
committed
인스타 게시글에 대한 메타데이터, 이미지, 캡션 추출 로직 추가 : refactor : pull_request 이벤트 + closed 액션 → destroy 실행
issues 이벤트 + closed 액션 → destroy 실행 issue_comment 이벤트 + @suh-lab server destroy 포함 → destroy 실행 #3
1 parent 94c1e80 commit 5993ddb

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/PROJECT-PYTHON-SYNOLOGY-PR-PREVIEW.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,13 +1140,11 @@ jobs:
11401140
# -----------------------------------------------------------------
11411141
destroy-preview:
11421142
name: Preview 삭제
1143-
needs: check-command
1143+
# needs 의존성 제거: PR/Issue 닫힘 이벤트에서도 독립적으로 실행되도록 함
11441144
if: |
1145-
always() && (
1146-
(github.event_name == 'issue_comment' && needs.check-command.outputs.is_valid == 'true' && needs.check-command.outputs.command == 'destroy') ||
1147-
(github.event_name == 'pull_request' && github.event.action == 'closed') ||
1148-
(github.event_name == 'issues' && github.event.action == 'closed')
1149-
)
1145+
(github.event_name == 'pull_request' && github.event.action == 'closed') ||
1146+
(github.event_name == 'issues' && github.event.action == 'closed') ||
1147+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@suh-lab') && contains(github.event.comment.body, 'server destroy'))
11501148
runs-on: ubuntu-latest
11511149
steps:
11521150
- name: PR/Issue 번호 가져오기

0 commit comments

Comments
 (0)