Skip to content

Commit 73d2b2c

Browse files
authored
workflows: don't process all branches (#249)
* workflow/deploy: don't process all branches In the deploy workflow, using a push branch config of ** results in it trying to gpg init for branches created by dependabot or anyone/anything else. This is not what we want - we want those covered by pull request events. Change the config to only handle pushes to main (and continue to handle all tags and all PRs). Signed-off-by: Andy Goldstein <[email protected]> * workflow/ci: don't process all branches Change the ci config to only handle pushes to main (and continue to handle all PRs). Signed-off-by: Andy Goldstein <[email protected]> --------- Signed-off-by: Andy Goldstein <[email protected]>
1 parent b1c9f85 commit 73d2b2c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- '**'
6+
- 'main'
77
pull_request:
88
branches: [ main ]
99

@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Test
4242
run: make test
43-
43+
4444
- name: Test Sanity
4545
run: make test-sanity
4646

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy
33
on:
44
push:
55
branches:
6-
- '**'
6+
- 'main'
77
tags:
88
- 'v*'
99
pull_request:
@@ -24,7 +24,7 @@ jobs:
2424
run: .ci/gpg/create-keyring.sh
2525
env:
2626
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
27-
27+
2828
- name: Install Go
2929
uses: actions/setup-go@v4
3030
with:

0 commit comments

Comments
 (0)