Skip to content

Commit d9760d2

Browse files
Added PR comments
1 parent af72d04 commit d9760d2

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.circleci/config.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ jobs:
22
build:
33
machine: true
44
steps:
5+
- run:
6+
command: '[ -z "$PR_NUMBER" ] && circleci-agent step halt'
7+
name: "Check if PR_NUMBER exists"
58
- checkout
6-
-
7-
run:
8-
command: "docker pull quay.io/openshift-cs/asciibinder:latest"
9-
name: "Get AsciiBinder image"
109
-
1110
run:
1211
command: "chmod +x scripts/push_to_netlify.sh && ./scripts/push_to_netlify.sh"
1312
name: "Get PR branch"
13+
-
14+
run:
15+
command: "docker pull quay.io/openshift-cs/asciibinder:latest"
16+
name: "Get AsciiBinder image"
1417
-
1518
run:
1619
command: "git branch -m latest"
@@ -39,6 +42,10 @@ jobs:
3942
run:
4043
command: "netlify deploy --site docspreview --auth $NETLIFY_AUTH_TOKEN --alias $PR_NUMBER --dir=_preview/"
4144
name: "Upload to Netlify"
45+
-
46+
run:
47+
command: "chmod +x scripts/ghcomment.sh && ./scripts/ghcomment.sh"
48+
name: "Add comment on PR"
4249

4350
workflows:
4451
build_and_publish:

0 commit comments

Comments
 (0)