Skip to content

Commit 8e6c02e

Browse files
authored
ci: snapshot only on default branch (#7355)
1 parent 231fd36 commit 8e6c02e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/periodic-snapshot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Periodic Snapshot
22

33
on:
44
schedule:
5-
- cron: '10 0 1 * *' # 10 minutes after midnight on the first of every month
5+
- cron: '10 0 1 * *' # 10 minutes after midnight on the first day of every month
66
workflow_dispatch:
77
inputs:
88
bump:
@@ -24,6 +24,7 @@ permissions:
2424
jobs:
2525
bump-version-and-tag:
2626
runs-on: ubuntu-latest
27+
if: github.ref_name == github.event.repository.default_branch
2728
steps:
2829
- uses: actions/checkout@v4
2930
with:

0 commit comments

Comments
 (0)