Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit 0cc0162

Browse files
dongocchoisohyun
authored andcommitted
github runner 수정, slack notify 관련 코드 삭제
1 parent 2fc4086 commit 0cc0162

File tree

6 files changed

+13
-177
lines changed

6 files changed

+13
-177
lines changed

.github/workflows/add-label.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
label-pr:
99
if: ${{ github.event.pull_request.draft == false && github.event.pull_request.user.login != 'triple-bot' && !contains(github.event.pull_request.labels.*.name, 'release') }}
10-
runs-on: [self-hosted, linux, x64]
10+
runs-on: ${{ vars.NOL_RUNNER }}
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v4

.github/workflows/cd.yaml

Lines changed: 4 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,12 @@ env:
1616
NPM_REGISTRY_URL: 'https://registry.npmjs.org'
1717
NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }}
1818
HUSKY: 0
19-
# Slack notifications
20-
SLACK_WEBHOOK: ${{ secrets.GHA_NOTIFICATIONS_WEBHOOK_URL }}
21-
SLACK_CHANNEL: '#triple-web-dev-notifications' # 메시지 보낼 채널
22-
SLACK_USERNAME: 'Triple Frontend' # 메시지를 보내는 계정 이름
23-
SLACK_ICON_EMOJI: ':triple_new:'
24-
SLACK_DETAIL_URL: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
25-
SLACK_GITHUB_REPOSITORY: ${{ github.repository }}
26-
SLACK_AUTHOR_NAME: ${{ github.event.sender.login }}
27-
SLACK_AUTHOR_ICON: ${{ github.event.sender.avatar_url }}
28-
SLACK_FOOTER: ${{ github.repository }}
29-
SLACK_GITHUB_REF: ${{ github.event.ref }} # 메시지에 ref로 표시되는 값
30-
SLACK_GITHUB_EVENT_NAME: ${{ github.event_name }} # 메시지에 Event로 표시되는 값
3119
# Nx Cloud
3220
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
3321

3422
jobs:
3523
wait-for-ci:
36-
runs-on: [self-hosted, linux, x64]
24+
runs-on: ${{ vars.NOL_RUNNER }}
3725

3826
steps:
3927
- uses: actions/checkout@v4
@@ -56,30 +44,14 @@ jobs:
5644
token: ${{ secrets.GITHUB_TOKEN }}
5745
checkName: build
5846

59-
- name: Notify checking CI timeout
60-
if: steps.wait-for-ci.outputs.conclusion == 'timed_out'
61-
env:
62-
SLACK_COLOR: fail
63-
SLACK_TITLE: ':pleading: CI Waiting timeout'
64-
SLACK_TOPIC: 'CI workflow가 시작되었는지, 기다리는 job의 이름이 CI job과 일치하는지, 확인해주세요.'
65-
run: pnpm dlx @titicaca/gha-tools notify
66-
67-
- name: Notify checking CI failure
68-
if: steps.wait-for-ci.outputs.conclusion == 'failure'
69-
env:
70-
SLACK_COLOR: fail
71-
SLACK_TITLE: ':pleading: CI FAILURE'
72-
SLACK_TOPIC: '배포를 중단합니다.'
73-
run: pnpm dlx @titicaca/gha-tools notify
74-
7547
- name: Shutdown workflow
7648
if: steps.wait-for-ci.outputs.conclusion != 'success'
7749
run: node -e 'process.exit(1)'
7850

7951
release:
8052
needs: wait-for-ci
8153
if: startsWith(github.event.ref, 'refs/tags/release-prod-')
82-
runs-on: [self-hosted, linux, x64]
54+
runs-on: ${{ vars.NOL_RUNNER }}
8355

8456
steps:
8557
- uses: actions/checkout@v4
@@ -98,13 +70,6 @@ jobs:
9870
- name: Get release version
9971
run: echo "DEPLOY_VERSION=v$(cat ./lerna.json | jq -r '.version')" >> $GITHUB_ENV
10072

101-
- name: Notify deploy start to slack
102-
env:
103-
SLACK_COLOR: gray
104-
SLACK_TITLE: ':rocket: Release WORKING'
105-
SLACK_TOPIC: ${{ env.DEPLOY_VERSION }}
106-
run: pnpm dlx @titicaca/gha-tools notify
107-
10873
- name: Install dependencies
10974
env:
11075
NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }}
@@ -117,26 +82,10 @@ jobs:
11782
NODE_AUTH_TOKEN: ${{ secrets.READ_WRITE_NPM_TOKEN }}
11883
run: pnpm -r publish --no-git-checks
11984

120-
- name: Notify deploy success to slack
121-
if: success()
122-
env:
123-
SLACK_COLOR: success
124-
SLACK_TITLE: ':tada: Release SUCCESS'
125-
SLACK_TOPIC: ${{ env.DEPLOY_VERSION }}
126-
run: pnpm dlx @titicaca/gha-tools notify
127-
128-
- name: Notify deploy fail to slack
129-
if: failure()
130-
env:
131-
SLACK_COLOR: fail
132-
SLACK_TITLE: ':pleading: Release FAILURE'
133-
SLACK_TOPIC: ${{ env.DEPLOY_VERSION }}
134-
run: pnpm dlx @titicaca/gha-tools notify
135-
13685
tag:
13786
needs: release
13887
if: success()
139-
runs-on: [self-hosted, linux, x64]
88+
runs-on: ${{ vars.NOL_RUNNER }}
14089

14190
steps:
14291
- uses: actions/checkout@v4
@@ -198,7 +147,7 @@ jobs:
198147
canary-release:
199148
needs: wait-for-ci
200149
if: startsWith(github.event.ref, 'refs/tags/release-pr-')
201-
runs-on: [self-hosted, linux, x64]
150+
runs-on: ${{ vars.NOL_RUNNER }}
202151

203152
steps:
204153
- uses: actions/checkout@v4
@@ -229,13 +178,6 @@ jobs:
229178
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
230179
echo "DEPLOY_VERSION=$NEXT_VERSION-pr-$PR_NUMBER.$REF_COUNT" >> $GITHUB_ENV
231180
232-
- name: Notify release start to Slack
233-
env:
234-
SLACK_COLOR: gray
235-
SLACK_TITLE: ':rocket: Release WORKING'
236-
SLACK_TOPIC: ${{ env.DEPLOY_VERSION }}
237-
run: pnpm dlx @titicaca/gha-tools notify
238-
239181
- name: Install dependencies
240182
env:
241183
NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }}
@@ -265,19 +207,3 @@ jobs:
265207
-H "Content-Type: application/json" \
266208
-f --request POST \
267209
-d "{\"body\":\"${{ env.DEPLOY_VERSION }} has been published!\"}"
268-
269-
- name: Notify release success to Slack
270-
if: success()
271-
env:
272-
SLACK_COLOR: success
273-
SLACK_TITLE: ':tada: Release SUCCESS'
274-
SLACK_TOPIC: ${{ env.DEPLOY_VERSION }}
275-
run: pnpm dlx @titicaca/gha-tools notify
276-
277-
- name: Notify release failure to Slack
278-
if: failure()
279-
env:
280-
SLACK_COLOR: fail
281-
SLACK_TITLE: ':pleading: Release FAILURE'
282-
SLACK_TOPIC: ${{ env.DEPLOY_VERSION }}
283-
run: pnpm dlx @titicaca/gha-tools notify

.github/workflows/ci.yaml

Lines changed: 5 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,12 @@ env:
1313
NPM_REGISTRY_URL: 'https://registry.npmjs.org'
1414
NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }}
1515
HUSKY: 0
16-
# Slack Notifications
17-
SLACK_WEBHOOK: ${{ secrets.GHA_NOTIFICATIONS_WEBHOOK_URL }}
18-
SLACK_CHANNEL: '#triple-web-dev-notifications' # 메시지 보낼 채널
19-
SLACK_USERNAME: 'Triple Frontend' # 메시지를 보내는 계정 이름
20-
SLACK_ICON_EMOJI: ':triple_new:'
21-
SLACK_DETAIL_URL: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
22-
SLACK_GITHUB_REPOSITORY: ${{ github.repository }}
23-
SLACK_AUTHOR_NAME: ${{ github.event.sender.login }}
24-
SLACK_AUTHOR_ICON: ${{ github.event.sender.avatar_url }}
25-
SLACK_FOOTER: ${{ github.repository }}
26-
SLACK_GITHUB_REF: ${{ github.event.ref }} # 메시지에 ref로 표시되는 값
27-
SLACK_GITHUB_EVENT_NAME: ${{ github.event_name }} # 메시지에 Event로 표시되는 값
2816
# Nx Cloud
2917
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
3018

3119
jobs:
3220
check-dependencies:
33-
runs-on: [self-hosted, linux, x64]
21+
runs-on: ${{ vars.NOL_RUNNER }}
3422

3523
steps:
3624
- uses: actions/checkout@v4
@@ -56,16 +44,8 @@ jobs:
5644
exit 1
5745
fi
5846
59-
- name: Notify checking dependency failure
60-
if: failure() && steps.check-working-tree-clean.outcome == 'failure'
61-
env:
62-
SLACK_COLOR: fail
63-
SLACK_TITLE: ':pleading: Deps check FAILURE'
64-
SLACK_TOPIC: '의존성 변경이 있습니다. `pnpm run sync-deps`로 변경을 반영해주세요.'
65-
run: pnpm dlx @titicaca/gha-tools notify
66-
6747
lint:
68-
runs-on: [self-hosted, linux, x64]
48+
runs-on: ${{ vars.NOL_RUNNER }}
6949

7050
steps:
7151
- uses: actions/checkout@v4
@@ -87,16 +67,8 @@ jobs:
8767
id: lint
8868
run: pnpm run lint
8969

90-
- name: Notify linting failure
91-
if: failure() && steps.lint.outcome == 'failure'
92-
env:
93-
SLACK_COLOR: fail
94-
SLACK_TITLE: ':pleading: Lint FAILURE'
95-
SLACK_TOPIC: ''
96-
run: pnpm dlx @titicaca/gha-tools notify
97-
9870
build:
99-
runs-on: [self-hosted, linux, x64]
71+
runs-on: ${{ vars.NOL_RUNNER }}
10072

10173
steps:
10274
- uses: actions/checkout@v4
@@ -118,16 +90,8 @@ jobs:
11890
id: build
11991
run: pnpm run build
12092

121-
- name: Notify building failure
122-
if: failure() && steps.build.outcome == 'failure'
123-
env:
124-
SLACK_COLOR: fail
125-
SLACK_TITLE: ':pleading: Build FAILURE'
126-
SLACK_TOPIC: ''
127-
run: pnpm dlx @titicaca/gha-tools notify
128-
12993
test:
130-
runs-on: [self-hosted, linux, x64]
94+
runs-on: ${{ vars.NOL_RUNNER }}
13195

13296
steps:
13397
- uses: actions/checkout@v4
@@ -149,31 +113,15 @@ jobs:
149113
id: test
150114
run: pnpm run test:coverage -- --ci --reporters github-actions --reporters summary --maxWorkers 2
151115

152-
- name: Notify testing failure
153-
if: failure() && steps.test.outcome == 'failure'
154-
env:
155-
SLACK_COLOR: fail
156-
SLACK_TITLE: ':pleading: Test FAILURE'
157-
SLACK_TOPIC: ''
158-
run: pnpm dlx @titicaca/gha-tools notify
159-
160116
- name: Upload coverage to Codecov
161117
id: upload-coverage-to-codecov
162118
uses: codecov/codecov-action@v3
163119
with:
164120
token: ${{ secrets.CODECOV_TOKEN }}
165121
directory: ./coverage
166122

167-
- name: Notify uploading coverage failure
168-
if: failure() && steps.upload-coverage-to-codecov.outcome == 'failure'
169-
env:
170-
SLACK_COLOR: fail
171-
SLACK_TITLE: ':pleading: Upload coverage FAILURE'
172-
SLACK_TOPIC: ''
173-
run: pnpm dlx @titicaca/gha-tools notify
174-
175123
chromatic-deployment:
176-
runs-on: [self-hosted, linux, x64]
124+
runs-on: ${{ vars.NOL_RUNNER }}
177125

178126
steps:
179127
- uses: actions/checkout@v4
@@ -202,14 +150,6 @@ jobs:
202150
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
203151
zip: true
204152

205-
- name: Notify publishing to Chromatic failure
206-
if: failure() && steps.publish-to-chromatic.outcome == 'failure'
207-
env:
208-
SLACK_COLOR: fail
209-
SLACK_TITLE: ':pleading: Publish to Chromatic FAILURE'
210-
SLACK_TOPIC: ''
211-
run: pnpm dlx @titicaca/gha-tools notify
212-
213153
- name: Publish to Chromatic and auto accept changes
214154
if: github.ref == 'refs/heads/main'
215155
uses: chromaui/action@latest

.github/workflows/pr-closed.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111

1212
jobs:
1313
delete-release-tag:
14-
runs-on: [self-hosted, linux, x64]
14+
runs-on: ${{ vars.NOL_RUNNER }}
1515

1616
steps:
1717
- name: Check tag ref exist

.github/workflows/tag-with-comment.yaml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,11 @@ env:
1111
NODE_VERSION: 'lts/*'
1212
PNPM_VERSION: '9'
1313
NPM_REGISTRY_URL: 'https://registry.npmjs.org'
14-
# Slack Notifications
15-
SLACK_WEBHOOK: ${{ secrets.GHA_NOTIFICATIONS_WEBHOOK_URL }}
16-
SLACK_CHANNEL: '#triple-web-dev-notifications' # 메시지 보낼 채널
17-
SLACK_USERNAME: 'Triple Frontend' # 메시지를 보내는 계정 이름
18-
SLACK_ICON_EMOJI: ':triple_new:'
19-
SLACK_DETAIL_URL: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
20-
SLACK_GITHUB_REPOSITORY: ${{ github.repository }}
21-
SLACK_AUTHOR_NAME: ${{ github.event.sender.login }}
22-
SLACK_AUTHOR_ICON: ${{ github.event.sender.avatar_url }}
23-
SLACK_FOOTER: ${{ github.repository }}
24-
SLACK_GITHUB_REF: ${{ github.event.ref }} # 메시지에 ref로 표시되는 값
25-
SLACK_GITHUB_EVENT_NAME: ${{ github.event_name }} # 메시지에 Event로 표시되는 값
2614

2715
jobs:
2816
tag-with-comment:
2917
if: github.event.issue.state == 'open' && github.event.issue.pull_request && endsWith(github.event.comment.body, 'release-canary')
30-
runs-on: [self-hosted, linux, x64]
18+
runs-on: ${{ vars.NOL_RUNNER }}
3119

3220
steps:
3321
- uses: pnpm/action-setup@v3
@@ -116,21 +104,3 @@ jobs:
116104
-H 'Authorization: token ${{ secrets.TRIPLE_BOT_GITHUB_TOKEN }}' \
117105
-H 'Content-Type: application/json' \
118106
-d "{\"force\":true,\"sha\":\"${TAG_SHA}\"}"
119-
120-
- name: Notify tagging success to Slack
121-
if: success()
122-
env:
123-
NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }}
124-
SLACK_COLOR: success
125-
SLACK_TITLE: ':label: Release tagging SUCCESS'
126-
SLACK_TOPIC: '${{ github.event.sender.login }} tagged ${{ env.PR_REF }} as ${{ env.TAG_NAME }}.'
127-
run: pnpm dlx @titicaca/gha-tools notify
128-
129-
- name: Notify tagging fail to Slack
130-
if: failure()
131-
env:
132-
NODE_AUTH_TOKEN: ${{ secrets.READ_ONLY_NPM_TOKEN }}
133-
SLACK_COLOR: fail
134-
SLACK_TITLE: ':pleading: Release tagging FAILURE'
135-
SLACK_TOPIC: 'Fail to tag ${{ env.PR_REF }} as ${{ env.TAG_NAME }}.'
136-
run: pnpm dlx @titicaca/gha-tools notify

.github/workflows/update-changelog.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515

1616
jobs:
1717
update-changelog:
18-
runs-on: [self-hosted, linux, x64]
18+
runs-on: ${{ vars.NOL_RUNNER }}
1919
if: ${{ github.event.label.name == 'release' }}
2020
steps:
2121
- name: Check if a milestone exists on PR

0 commit comments

Comments
 (0)