We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e2529 commit cff7097Copy full SHA for cff7097
do/upload_s3.go
@@ -16,12 +16,18 @@ const (
16
maxS3Results = 1000
17
)
18
19
-// we should only sign and upload to s3 if this is my repo
20
-// and a push event
+// we should only sign and upload to s3 if this is my repo and a push event
+// or building locally
21
+// don't sign if it's a fork or pull requests
22
func shouldSignAndUpload() bool {
23
// https://help.github.com/en/actions/automating-your-workflow-with-github-actions/using-environment-variables
24
25
repo := os.Getenv("GITHUB_REPOSITORY")
26
+ if repo == "" {
27
+ // building locally e.g. release for final testing
28
+ // we want to sign it
29
+ return true
30
+ }
31
if repo != "sumatrapdfreader/sumatrapdf" {
32
return false
33
}
0 commit comments