Skip to content

Commit

Permalink
update github actions to be able to access private sg/sg (#1112)
Browse files Browse the repository at this point in the history
* update github actions to be able to access private sg/sg

* add workflow_dispatch to actions to be able to test actions
  • Loading branch information
burmudar authored Oct 2, 2024
1 parent 95b5854 commit f51f817
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ name: Publish Docker image dependencies
# We only want to build on releases; this condition is 100% stolen from the
# goreleaser action.
on:
workflow_dispatch:
push:
tags:
- "*"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/go-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Go CI

on:
- push
workflow_dispatch:
push:
env:
GOPRIVATE: "github.com/sourcegraph/*"
PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}"

jobs:
go-test:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/go-lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Go Lint

on:
- push
workflow_dispatch:
push:
env:
GOPRIVATE: "github.com/sourcegraph/*"
PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}"

jobs:
go-lint:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/goreleaser-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: GoReleaser check
on:
push:
workflow_dispatch:
env:
GOPRIVATE: "github.com/sourcegraph/*"
PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}"

jobs:
goreleaser:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Build and Release

on:
workflow_dispatch:
push:
tags:
- '*'
env:
GOPRIVATE: "github.com/sourcegraph/*"
PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}"

# There are two cases where this GitHub action will run:
#
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/scip.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: SCIP
'on':
- push
on:
workflow_dispatch:
push:
env:
GOPRIVATE: "github.com/sourcegraph/*"
PRIVATE_TOKEN: "${{ secrets.PRIVATE_SG_ACCESS_TOKEN }}"
jobs:
scip-go:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f51f817

Please sign in to comment.