Skip to content

Commit 7ea3396

Browse files
committed
fix export
1 parent 988a547 commit 7ea3396

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.drone.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ steps:
433433
name: package-alpine-x64-no-chromium
434434
- commands:
435435
- ./scripts/generate_md5sum.sh
436-
- ./scripts/get_gh_token.sh
436+
- source ./scripts/get_gh_token.sh
437437
- ./scripts/publish_github_release.sh
438438
depends_on:
439439
- package-linux-x64-glibc
@@ -512,6 +512,6 @@ kind: secret
512512
name: gar
513513
---
514514
kind: signature
515-
hmac: e28afc054103ba153f9643affc71a0523a7b2c7d4a501761a1a57e0d471f43a9
515+
hmac: b9210578208ea03e014ce0c24053c31233259480763c1c9a742bcd74d683b485
516516

517517
...

scripts/drone/promotion.star

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def publish_gh_release():
77
'image': 'cibuilds/github:0.13.0',
88
'commands': [
99
'./scripts/generate_md5sum.sh',
10-
'./scripts/get_gh_token.sh',
10+
'source ./scripts/get_gh_token.sh',
1111
'./scripts/publish_github_release.sh',
1212
],
1313
'environment': {

scripts/get_gh_token.sh

-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
#!/bin/bash
22

33
set -e
4-
echo "in scripts"
54

65
# Ensure necessary tools are installed
76
apk add --no-cache openssl curl jq
8-
echo "tools installed"
97

108
# Write the private key to a file
119
echo "$GITHUB_APP_PRIVATE_KEY" > private-key.pem
1210
chmod 600 private-key.pem
1311

14-
echo "private key in file"
15-
1612
# Generate the JWT
1713
NOW=$(date +%s)
1814
EXPIRATION=$(($NOW + 600))
@@ -28,8 +24,6 @@ RESPONSE=$(curl -s -X POST \
2824
-H "Accept: application/vnd.github+json" \
2925
https://api.github.com/app/installations/$GITHUB_INSTALLATION_ID/access_tokens)
3026

31-
echo "get access token"
32-
3327
# Extract the token from the response
3428
GITHUB_TOKEN=$(echo $RESPONSE | jq -r '.token')
3529

0 commit comments

Comments
 (0)