@@ -12,6 +12,7 @@ TARGET_VERSION=$1
12
12
echo TARGET_VERSION=" $TARGET_VERSION "
13
13
14
14
checkForVariable " GITHUB_TOKEN"
15
+ checkForVariable " REPOSITORY_OWNER"
15
16
16
17
checkout_from https://github.com/checkstyle/contribution
17
18
@@ -27,13 +28,13 @@ if [ -d .ci-temp/checkstyle ]; then
27
28
cd ../../
28
29
else
29
30
cd .ci-temp/
30
- git clone https://github.com/checkstyle /checkstyle
31
+ git clone https://github.com/" $REPOSITORY_OWNER " /checkstyle
31
32
cd ../
32
33
fi
33
34
34
35
cd .ci-temp/checkstyle
35
36
36
- curl --fail-with-body https://api.github.com/repos/checkstyle /checkstyle/releases \
37
+ curl --fail-with-body https://api.github.com/repos/" $REPOSITORY_OWNER " /checkstyle/releases \
37
38
-H " Authorization: token $GITHUB_TOKEN " \
38
39
-o /var/tmp/cs-releases.json
39
40
@@ -50,7 +51,7 @@ BUILDER_RESOURCE_DIR="contribution/releasenotes-builder/src/main/resources/com/g
50
51
51
52
java -jar contribution/releasenotes-builder/target/releasenotes-builder-1.0-all.jar \
52
53
-localRepoPath checkstyle \
53
- -remoteRepoPath checkstyle /checkstyle \
54
+ -remoteRepoPath " $REPOSITORY_OWNER " /checkstyle \
54
55
-startRef " $START_REF " \
55
56
-endRef " $END_REF " \
56
57
-releaseNumber " $TARGET_VERSION " \
@@ -83,7 +84,7 @@ cat body.json
83
84
84
85
echo " Creating Github release"
85
86
curl --fail-with-body \
86
- -X POST https://api.github.com/repos/checkstyle /checkstyle/releases \
87
+ -X POST https://api.github.com/repos/" $REPOSITORY_OWNER " /checkstyle/releases \
87
88
-H " Accept: application/vnd.github+json" \
88
89
-H " Authorization: token $GITHUB_TOKEN " \
89
90
--data @body.json
0 commit comments