Repository navigation
52 lines (47 loc) ยท 2.24 KB
/
Copy pathmerge-queue-dequeue.yml
File metadata and controls
52 lines (47 loc) ยท 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# merge queue ๋ฐฉ์ถ ์๋ ์ฒ๋ฆฌ (#1892)
#
# pull_request_target ์ default branch ์ workflow ์ ์๋ง ์คํํ๋ค. PR ์ฝ๋ยทartifactยทcache ๋ฅผ
# ์ฒดํฌ์์ํ๊ฑฐ๋ ์คํํ์ง ์๊ณ , GitHub API ์๋ต๊ณผ default branch ์ ์ ์ฑ
์คํฌ๋ฆฝํธ๋ง ์ด๋ค
# (stack-integrity-notify.yml ๊ณผ ๊ฐ์ ๊ฒฝ๊ณ).
#
# ํ์ ์ handle-merge-queue-dequeue.mjs ๊ฐ ํ๋ค โ ์ด PR ์ ํ ๋ธ๋์น merge_group run ์ ์คํจ job ์ด
# ์์ผ๋ฉด ๋งํฌ๋ฅผ ์ฝ๋ฉํธ๋ก ๋จ๊ธฐ๊ณ , ์์ผ๋ฉด(์กฐ์ฉํ ๋ฐฉ์ถ) ๊ฐ์ head ๋น ํ ๋ฒ๋ง ์ฌํฌ์
ํ๊ณ ,
# MANUALยทALREADY_MERGEDยทMERGE ๋ ์๋ฌด๊ฒ๋ ํ์ง ์๋๋ค.
#
# ์ฌํฌ์
์ ์ฌ๊ธฐ์ ํ์ง ์๊ณ merge-queue-requeue.yml ์ dispatch ํ๋ค. GITHUB_TOKEN ์ผ๋ก ๋ฃ์ ํ ํญ๋ชฉ์
# merge_group CI ๋ฅผ ๋์ฐ์ง ๋ชปํ๊ณ , ์ด ๋ธ๋ฆฌ์ง๋ ์ํฌ๋ฆฟ์ ์ฐ์ง ์์ผ๋ฏ๋ก ์ฌ๋ ํ ํฐ์ ๊ฐ์ง ์ชฝ์ผ๋ก ๋๊ธด๋ค.
name: merge-queue-dequeue
on:
pull_request_target:
types: [dequeued]
permissions: {}
jobs:
handle:
# ๊ฐ์ PR ์ ๋ฐฉ์ถ ์ด๋ฒคํธ๊ฐ ๊ฒน์ณ๋ ์ค์ ์ธ์ด๋ค โ ์ทจ์ํ๋ฉด ๋ง์ปค ์ฝ๋ฉํธ ์์ด ์ฌํฌ์
๋ง ๋จ์ ์ ์๋ค.
concurrency:
group: merge-queue-dequeue-${{ github.repository_id }}-${{ github.event.pull_request.number }}
cancel-in-progress: false
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
# ์ฌํฌ์
์ํฌํ๋ก dispatch ์ ์ด๋ค.
actions: write
contents: read
issues: write
pull-requests: write
steps:
- name: Clone dequeue policy from the default branch
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false
- name: Run script tests
run: node --test .github/scripts/handle-merge-queue-dequeue.test.mjs
- name: ์คํจ job ์๋ด ๋๋ ํ ๋ฒ ์ฌํฌ์
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
DEQUEUE_REASON: ${{ github.event.reason }}
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
run: node .github/scripts/handle-merge-queue-dequeue.mjs