Skip to content

Commit

Permalink
Use default_branch instead of hardcoded branch name
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo Beauzée-Luyssen <hugo.beauzee@datadoghq.com>
  • Loading branch information
alopezz and chouquette committed Jul 9, 2024
1 parent 7957dd9 commit 9a06f15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ jobs:

publish:
name: Publish artifacts
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && (github.ref == 'master' || startsWith(github.ref, '7.')))
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && (github.ref ==
github.event.repository.default_branch || startsWith(github.ref, '7.')))
needs:
- build
- build-macos
Expand Down

0 comments on commit 9a06f15

Please sign in to comment.