Skip to content

Commit

Permalink
workflow/deploy: don't process all branches
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ncdc committed Jan 10, 2024
1 parent b1c9f85 commit d8cdf4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy
on:
push:
branches:
- '**'
- 'main'
tags:
- 'v*'
pull_request:
Expand All @@ -24,7 +24,7 @@ jobs:
run: .ci/gpg/create-keyring.sh
env:
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}

- name: Install Go
uses: actions/setup-go@v4
with:
Expand Down

0 comments on commit d8cdf4f

Please sign in to comment.