File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,20 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
if : github.repository == 'llvm/llvm-project'
15
15
steps :
16
+ - name : Checkout Automation Script
17
+ uses : actions/checkout@v4
18
+ with :
19
+ sparse-checkout : llvm/utils/git/
20
+ ref : main
21
+
16
22
- name : Setup Automation Script
23
+ working-directory : ./llvm/utils/git/
17
24
run : |
18
- curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/"$GITHUB_SHA"/llvm/utils/git/github-automation.py
19
- curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/"$GITHUB_SHA"/llvm/utils/git/requirements.txt
20
25
chmod a+x github-automation.py
21
26
pip install -r requirements.txt
22
27
23
28
- name : Update watchers
29
+ working-directory : ./llvm/utils/git/
24
30
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
25
31
env :
26
32
LABEL_NAME : ${{ github.event.label.name }}
Original file line number Diff line number Diff line change @@ -34,14 +34,20 @@ jobs:
34
34
(github.event.pull_request.author_association != 'MEMBER') &&
35
35
(github.event.pull_request.author_association != 'OWNER')
36
36
steps :
37
+ - name : Checkout Automation Script
38
+ uses : actions/checkout@v4
39
+ with :
40
+ sparse-checkout : llvm/utils/git/
41
+ ref : main
42
+
37
43
- name : Setup Automation Script
44
+ working-directory : ./llvm/utils/git/
38
45
run : |
39
- curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/github-automation.py
40
- curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/requirements.txt
41
46
chmod a+x github-automation.py
42
47
pip install -r requirements.txt
43
48
44
49
- name : Greet Author
50
+ working-directory : ./llvm/utils/git/
45
51
run : |
46
52
./github-automation.py \
47
53
--token '${{ secrets.GITHUB_TOKEN }}' \
Original file line number Diff line number Diff line change @@ -13,14 +13,20 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
if : github.repository == 'llvm/llvm-project'
15
15
steps :
16
+ - name : Checkout Automation Script
17
+ uses : actions/checkout@v4
18
+ with :
19
+ sparse-checkout : llvm/utils/git/
20
+ ref : main
21
+
16
22
- name : Setup Automation Script
23
+ working-directory : ./llvm/utils/git/
17
24
run : |
18
- curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/github-automation.py
19
- curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/requirements.txt
20
25
chmod a+x github-automation.py
21
26
pip install -r requirements.txt
22
27
23
28
- name : Update watchers
29
+ working-directory : ./llvm/utils/git/
24
30
run : |
25
31
./github-automation.py \
26
32
--token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \
You can’t perform that action at this time.
0 commit comments