Skip to content

Commit f51f817

Browse files
authored
update github actions to be able to access private sg/sg (#1112)
* update github actions to be able to access private sg/sg * add workflow_dispatch to actions to be able to test actions
1 parent 95b5854 commit f51f817

File tree

6 files changed

+24
-4
lines changed

6 files changed

+24
-4
lines changed

.github/workflows/docker.yml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ name: Publish Docker image dependencies
55
# We only want to build on releases; this condition is 100% stolen from the
66
# goreleaser action.
77
on:
8+
workflow_dispatch:
89
push:
910
tags:
1011
- "*"

.github/workflows/go-ci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: Go CI
22

33
on:
4-
- push
4+
workflow_dispatch:
5+
push:
6+
env:
7+
GOPRIVATE: "github.com/sourcegraph/*"
8+
PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}"
59

610
jobs:
711
go-test:

.github/workflows/go-lint.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: Go Lint
22

33
on:
4-
- push
4+
workflow_dispatch:
5+
push:
6+
env:
7+
GOPRIVATE: "github.com/sourcegraph/*"
8+
PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}"
59

610
jobs:
711
go-lint:

.github/workflows/goreleaser-check.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: GoReleaser check
33
on:
44
push:
55
workflow_dispatch:
6+
env:
7+
GOPRIVATE: "github.com/sourcegraph/*"
8+
PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}"
69

710
jobs:
811
goreleaser:

.github/workflows/goreleaser.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: Build and Release
22

33
on:
4+
workflow_dispatch:
45
push:
56
tags:
67
- '*'
8+
env:
9+
GOPRIVATE: "github.com/sourcegraph/*"
10+
PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}"
711

812
# There are two cases where this GitHub action will run:
913
#

.github/workflows/scip.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: SCIP
2-
'on':
3-
- push
2+
on:
3+
workflow_dispatch:
4+
push:
5+
env:
6+
GOPRIVATE: "github.com/sourcegraph/*"
7+
PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}"
48
jobs:
59
scip-go:
610
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)