File tree 3 files changed +3
-9
lines changed
3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ steps:
433
433
name : package-alpine-x64-no-chromium
434
434
- commands :
435
435
- ./scripts/generate_md5sum.sh
436
- - ./scripts/get_gh_token.sh
436
+ - source ./scripts/get_gh_token.sh
437
437
- ./scripts/publish_github_release.sh
438
438
depends_on :
439
439
- package-linux-x64-glibc
@@ -512,6 +512,6 @@ kind: secret
512
512
name : gar
513
513
---
514
514
kind : signature
515
- hmac : e28afc054103ba153f9643affc71a0523a7b2c7d4a501761a1a57e0d471f43a9
515
+ hmac : b9210578208ea03e014ce0c24053c31233259480763c1c9a742bcd74d683b485
516
516
517
517
...
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ def publish_gh_release():
7
7
'image' : 'cibuilds/github:0.13.0' ,
8
8
'commands' : [
9
9
'./scripts/generate_md5sum.sh' ,
10
- './scripts/get_gh_token.sh' ,
10
+ 'source ./scripts/get_gh_token.sh' ,
11
11
'./scripts/publish_github_release.sh' ,
12
12
],
13
13
'environment' : {
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
set -e
4
- echo " in scripts"
5
4
6
5
# Ensure necessary tools are installed
7
6
apk add --no-cache openssl curl jq
8
- echo " tools installed"
9
7
10
8
# Write the private key to a file
11
9
echo " $GITHUB_APP_PRIVATE_KEY " > private-key.pem
12
10
chmod 600 private-key.pem
13
11
14
- echo " private key in file"
15
-
16
12
# Generate the JWT
17
13
NOW=$( date +%s)
18
14
EXPIRATION=$(( $NOW + 600 ))
@@ -28,8 +24,6 @@ RESPONSE=$(curl -s -X POST \
28
24
-H " Accept: application/vnd.github+json" \
29
25
https://api.github.com/app/installations/$GITHUB_INSTALLATION_ID /access_tokens)
30
26
31
- echo " get access token"
32
-
33
27
# Extract the token from the response
34
28
GITHUB_TOKEN=$( echo $RESPONSE | jq -r ' .token' )
35
29
You can’t perform that action at this time.
0 commit comments