File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
generate :
10
10
runs-on : ubuntu-latest
11
+ environment : documentation
11
12
if : " github.ref == 'refs/heads/main'"
12
13
steps :
13
14
- uses : actions/checkout@v3
@@ -18,10 +19,10 @@ jobs:
18
19
generate-docs : " true"
19
20
base-path-to-features : " ./src"
20
21
21
- - name : Add and Commit Documentation
22
+ - name : Create a PR for Documentation
22
23
id : push_image_info
23
24
env :
24
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
+ GITHUB_TOKEN : ${{ secrets.PAT }}
25
26
run : |
26
27
set -e
27
28
echo "Start."
42
43
# Push
43
44
if [ "$NO_UPDATES" != "true" ] ; then
44
45
git push origin "$branch"
45
- gh pr create --title "$message" --body "$message"
46
+ gh api \
47
+ --method POST \
48
+ -H "Accept: application/vnd.github+json" \
49
+ /repos/${GITHUB_REPOSITORY}/pulls \
50
+ -f title="$message" \
51
+ -f body="$message" \
52
+ -f head="$branch" \
53
+ -f base='main'
46
54
fi
You can’t perform that action at this time.
0 commit comments