@blockcerts/blockcerts-verifier 1.50.3 → 1.50.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# automate PR process to Blockcerts.org: update blockcerts-verifier dependency
|
|
4
|
+
GITHUB_COM=github.com
|
|
5
|
+
BLOCKCERTS_GITHUB_REPO=blockchain-certificates-web/blockchain-certificates-web.github.io
|
|
6
|
+
GIT_REPO=$GITHUB_COM/$BLOCKCERTS_GITHUB_REPO.git
|
|
7
|
+
WORK_BRANCH=feat/update-bv
|
|
8
|
+
GITHUB_USER=botcerts
|
|
4
9
|
|
|
5
|
-
|
|
10
|
+
# clone CTS repo
|
|
11
|
+
git clone https://$GIT_REPO
|
|
12
|
+
cd blockchain-certificates-web.github.io
|
|
13
|
+
|
|
14
|
+
# rename remote to add authentication
|
|
15
|
+
git remote rm origin
|
|
16
|
+
git remote add origin https://$GITHUB_USER:$BOTCERTS_PR_GITHUB_TOKEN@$GIT_REPO
|
|
17
|
+
|
|
18
|
+
# run script from client repo
|
|
19
|
+
. scripts/update_blockcerts_verifier.sh
|
|
20
|
+
|
|
21
|
+
# open PR
|
|
22
|
+
#{
|
|
23
|
+
# "title": "Amazing new feature",
|
|
24
|
+
# "body": "Please pull this in!",
|
|
25
|
+
# "head": "octocat:new-feature",
|
|
26
|
+
# "base": "master"
|
|
27
|
+
#}
|
|
28
|
+
|
|
29
|
+
curl --data '{"head":"'${WORK_BRANCH}'", "base":"master", "title": "bump Blockcerts Verifier version", "body": "Please review and merge @lemoustachiste @raiseandfall"}' -H "Authorization: token ${BOTCERTS_PR_GITHUB_TOKEN}" https://api.github.com/repos/$BLOCKCERTS_GITHUB_REPO/pulls -v
|
|
30
|
+
|
|
31
|
+
# clean after use
|
|
32
|
+
cd ..
|
|
33
|
+
echo 'Delete working directory'
|
|
34
|
+
rm -rf blockchain-certificates.github.io
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
automated_update_bv_in_repo () {
|
|
4
|
-
# Parameters in order: $GITHUB_ORG, $GITHUB_REPO, $WORK_BRANCH, $GITHUB_USER
|
|
5
|
-
GITHUB_ORG=$1
|
|
6
|
-
GITHUB_REPO=$2
|
|
7
|
-
WORK_BRANCH=$3
|
|
8
|
-
GITHUB_USER=$4
|
|
9
|
-
|
|
10
|
-
# Local Parameters
|
|
11
|
-
GITHUB_COM=github.com
|
|
12
|
-
GITHUB_REPO_PATH=$GITHUB_COM/$GITHUB_ORG/$GITHUB_REPO
|
|
13
|
-
|
|
14
|
-
# clone repo
|
|
15
|
-
git clone https://"$GITHUB_REPO_PATH".git
|
|
16
|
-
cd "$GITHUB_REPO" || exit
|
|
17
|
-
|
|
18
|
-
# rename remote to add authentication
|
|
19
|
-
git remote rm origin
|
|
20
|
-
git remote add origin https://"$GITHUB_USER":"$BOTCERTS_PR_GITHUB_TOKEN"@"$GITHUB_REPO_PATH".git
|
|
21
|
-
|
|
22
|
-
# run script from client repo
|
|
23
|
-
. scripts/update_blockcerts_verifier.sh
|
|
24
|
-
|
|
25
|
-
curl --data '{"head":"'"${WORK_BRANCH}"'", "base":"master", "title": "bump Blockcerts Verifier version", "body": "Please review and merge @lemoustachiste @raiseandfall"}' -H "Authorization: token ${BOTCERTS_PR_GITHUB_TOKEN}" https://api.github.com/repos/"$GITHUB_ORG"/"$GITHUB_REPO"/pulls -v
|
|
26
|
-
|
|
27
|
-
# clean after use
|
|
28
|
-
cd ..
|
|
29
|
-
echo 'Delete working directory'
|
|
30
|
-
rm -rf "$GITHUB_REPO"
|
|
31
|
-
}
|