13
13
runs-on : ubuntu-latest
14
14
15
15
steps :
16
- - name : Configure Git Credentials
17
- uses : de-vri-es/setup-git-credentials@v2
18
- with :
19
- credentials : ${{ secrets.GIT_CREDENTIALS }}
20
-
21
16
- name : Checkout Repository
22
17
uses : actions/checkout@v4
23
18
56
51
if : ${{ success() && github.event.pull_request.number }}
57
52
uses : peter-evans/create-or-update-comment@v3
58
53
with :
59
- token : ${{ secrets.COMMENT_GITHUB_TOKEN }}
54
+ token : ${{ secrets.DOCS_GITHUB_PAT }}
60
55
issue-number : ${{ github.event.pull_request.number }}
61
56
body : |
62
57
UI bundle preview build successful! :white_check_mark:
67
62
if : ${{ failure() && github.event.pull_request.number }}
68
63
uses : peter-evans/create-or-update-comment@v3
69
64
with :
70
- token : ${{ secrets.COMMENT_GITHUB_TOKEN }}
65
+ token : ${{ secrets.DOCS_GITHUB_PAT }}
71
66
issue-number : ${{ github.event.pull_request.number }}
72
67
body : |
73
68
UI bundle preview build failure! :x:
@@ -79,16 +74,15 @@ jobs:
79
74
uses : peter-evans/find-comment@v2
80
75
id : fc
81
76
with :
82
- token : ${{ secrets.COMMENT_GITHUB_TOKEN }}
77
+ token : ${{ secrets.DOCS_GITHUB_PAT }}
83
78
issue-number : ${{ github.event.pull_request.number }}
84
- comment-author : ' mlr'
85
79
body-includes : UI bundle preview build successful!
86
80
direction : last
87
81
88
82
- name : Deploy to GitHub Pages
89
83
if : success()
90
84
run : |
91
- git clone https:// github.com/ $GITHUB_REPOSITORY.git pages
85
+ git clone git@ github.com: $GITHUB_REPOSITORY.git pages
92
86
cd pages
93
87
git checkout gh-pages
94
88
@@ -116,7 +110,7 @@ jobs:
116
110
sleep 5 # Allow time for build to initiate
117
111
build_url=$(curl -s -L \
118
112
-H "Accept: application/vnd.github+json" \
119
- -H "Authorization: Bearer ${{ secrets.COMMENT_GITHUB_TOKEN }}" \
113
+ -H "Authorization: Bearer ${{ secrets.DOCS_GITHUB_PAT }}" \
120
114
-H "X-GitHub-Api-Version: 2022-11-28" 'https://api.github.com/repos/${{ github.event.repository.full_name }}/pages/builds/latest' \
121
115
| jq -r .url)
122
116
echo "url=$build_url" >> $GITHUB_OUTPUT
@@ -128,7 +122,7 @@ jobs:
128
122
for i in {1..60}; do
129
123
build_status=$(curl -s -L \
130
124
-H "Accept: application/vnd.github+json" \
131
- -H "Authorization: Bearer ${{ secrets.COMMENT_GITHUB_TOKEN }}" \
125
+ -H "Authorization: Bearer ${{ secrets.DOCS_GITHUB_PAT }}" \
132
126
-H "X-GitHub-Api-Version: 2022-11-28" '${{ steps.ghpages_build.outputs.url }}' \
133
127
| jq -r .status)
134
128
@@ -153,7 +147,7 @@ jobs:
153
147
if : ${{ steps.fc.outputs.comment-id != '' }}
154
148
uses : peter-evans/create-or-update-comment@v3
155
149
with :
156
- token : ${{ secrets.COMMENT_GITHUB_TOKEN }}
150
+ token : ${{ secrets.DOCS_GITHUB_PAT }}
157
151
comment-id : ${{ steps.fc.outputs.comment-id }}
158
152
body : |
159
153
Deployment successful! [View preview](${{ steps.draft_url.outputs.url }})
0 commit comments