Skip to content

Commit ff1cfb6

Browse files
authored
Make mirroring only happen on main branch, or when a tag is deleted (#61)
1 parent 0a73ae0 commit ff1cfb6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/mirror.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Mirror To gemini-cli-extensions/flutter
22

3-
on: [push, delete]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
delete:
48

59
# Ensures that only one mirror job runs at a time per branch.
610
# Cancels any in-progress job on the same branch if a new push occurs.
@@ -10,6 +14,7 @@ concurrency:
1014

1115
jobs:
1216
mirror:
17+
if: github.event_name == 'push' || (github.event_name == 'delete' && github.event.ref_type == 'tag')
1318
runs-on: ubuntu-latest
1419
steps:
1520
- name: Checkout

0 commit comments

Comments
 (0)