Skip to content

Commit 5492555

Browse files
committed
feat: disable push for tags: branch and latest when ${{ github.event_name == 'schedule' }}
1 parent 875d228 commit 5492555

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.github/workflows/alpine-frpc.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,25 +87,25 @@ jobs:
8787
prefix=
8888
suffix=
8989
tags: |
90-
type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
90+
type=ref,enable=${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name != 'schedule' }},priority=600,prefix=,suffix=,event=branch
9191
type=edge,enable=true,priority=700,prefix=,suffix=,branch=dev
92-
type=raw,enable={{is_default_branch}},priority=200,prefix=,suffix=,value=latest
92+
type=raw,enable=${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name != 'schedule' }},priority=200,prefix=,suffix=,value=latest
9393
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/') }},priority=200,prefix=,suffix=,value=latest
9494
type=schedule,enable=true,priority=1000,prefix=,suffix=,pattern=nightly
9595
type=match,enable=true,priority=800,prefix=,suffix=,pattern=\d+.\d+.\d+,group=0,value=
9696
type=match,enable=true,priority=800,prefix=,suffix=,pattern=\d+.\d+,group=0,value=
9797
type=match,enable=${{ !startsWith(github.ref, 'refs/tags/0.') && !startsWith(github.ref, 'refs/tags/v0.') && !startsWith(github.ref, 'refs/tags/V0.') && !startsWith(github.ref, 'refs/tags/alpine-0.') && !startsWith(github.ref, 'refs/tags/alpine-v0.') && !startsWith(github.ref, 'refs/tags/alpine-V0.') }},priority=800,prefix=,suffix=,pattern=\d+,group=0,value=
98-
type=ref,enable=true,priority=600,prefix=,suffix=-alpine,event=branch
98+
type=ref,enable=${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name != 'schedule' }},priority=600,prefix=,suffix=-alpine,event=branch
9999
type=edge,enable=true,priority=700,prefix=,suffix=-alpine,branch=dev
100-
type=raw,enable={{is_default_branch}},priority=200,prefix=,suffix=,value=alpine
100+
type=raw,enable=${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name != 'schedule' }},priority=200,prefix=,suffix=,value=alpine
101101
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/') }},priority=200,prefix=,suffix=,value=alpine
102102
type=schedule,enable=true,priority=1000,prefix=,suffix=-alpine,pattern=nightly
103103
type=match,enable=true,priority=800,prefix=,suffix=-alpine,pattern=\d+.\d+.\d+,group=0,value=
104104
type=match,enable=true,priority=800,prefix=,suffix=-alpine,pattern=\d+.\d+,group=0,value=
105105
type=match,enable=${{ !startsWith(github.ref, 'refs/tags/0.') && !startsWith(github.ref, 'refs/tags/v0.') && !startsWith(github.ref, 'refs/tags/V0.') && !startsWith(github.ref, 'refs/tags/alpine-0.') && !startsWith(github.ref, 'refs/tags/alpine-v0.') && !startsWith(github.ref, 'refs/tags/alpine-V0.') }},priority=800,prefix=,suffix=-alpine,pattern=\d+,group=0,value=
106-
type=ref,enable=true,priority=600,prefix=,suffix=-alpine3.20,event=branch
106+
type=ref,enable=${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name != 'schedule' }},priority=600,prefix=,suffix=-alpine3.20,event=branch
107107
type=edge,enable=true,priority=700,prefix=,suffix=-alpine3.20,branch=dev
108-
type=raw,enable={{is_default_branch}},priority=200,prefix=,suffix=,value=alpine3.20
108+
type=raw,enable=${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name != 'schedule' }},priority=200,prefix=,suffix=,value=alpine3.20
109109
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/') }},priority=200,prefix=,suffix=,value=alpine3.20
110110
type=schedule,enable=true,priority=1000,prefix=,suffix=-alpine3.20,pattern=nightly
111111
type=match,enable=true,priority=800,prefix=,suffix=-alpine3.20,pattern=\d+.\d+.\d+,group=0,value=

.github/workflows/alpine-frps.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,25 +87,25 @@ jobs:
8787
prefix=
8888
suffix=
8989
tags: |
90-
type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
90+
type=ref,enable=${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name != 'schedule' }},priority=600,prefix=,suffix=,event=branch
9191
type=edge,enable=true,priority=700,prefix=,suffix=,branch=dev
92-
type=raw,enable={{is_default_branch}},priority=200,prefix=,suffix=,value=latest
92+
type=raw,enable=${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name != 'schedule' }},priority=200,prefix=,suffix=,value=latest
9393
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/') }},priority=200,prefix=,suffix=,value=latest
9494
type=schedule,enable=true,priority=1000,prefix=,suffix=,pattern=nightly
9595
type=match,enable=true,priority=800,prefix=,suffix=,pattern=\d+.\d+.\d+,group=0,value=
9696
type=match,enable=true,priority=800,prefix=,suffix=,pattern=\d+.\d+,group=0,value=
9797
type=match,enable=${{ !startsWith(github.ref, 'refs/tags/0.') && !startsWith(github.ref, 'refs/tags/v0.') && !startsWith(github.ref, 'refs/tags/V0.') && !startsWith(github.ref, 'refs/tags/alpine-0.') && !startsWith(github.ref, 'refs/tags/alpine-v0.') && !startsWith(github.ref, 'refs/tags/alpine-V0.') }},priority=800,prefix=,suffix=,pattern=\d+,group=0,value=
98-
type=ref,enable=true,priority=600,prefix=,suffix=-alpine,event=branch
98+
type=ref,enable=${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name != 'schedule' }},priority=600,prefix=,suffix=-alpine,event=branch
9999
type=edge,enable=true,priority=700,prefix=,suffix=-alpine,branch=dev
100-
type=raw,enable={{is_default_branch}},priority=200,prefix=,suffix=,value=alpine
100+
type=raw,enable=${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name != 'schedule' }},priority=200,prefix=,suffix=,value=alpine
101101
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/') }},priority=200,prefix=,suffix=,value=alpine
102102
type=schedule,enable=true,priority=1000,prefix=,suffix=-alpine,pattern=nightly
103103
type=match,enable=true,priority=800,prefix=,suffix=-alpine,pattern=\d+.\d+.\d+,group=0,value=
104104
type=match,enable=true,priority=800,prefix=,suffix=-alpine,pattern=\d+.\d+,group=0,value=
105105
type=match,enable=${{ !startsWith(github.ref, 'refs/tags/0.') && !startsWith(github.ref, 'refs/tags/v0.') && !startsWith(github.ref, 'refs/tags/V0.') && !startsWith(github.ref, 'refs/tags/alpine-0.') && !startsWith(github.ref, 'refs/tags/alpine-v0.') && !startsWith(github.ref, 'refs/tags/alpine-V0.') }},priority=800,prefix=,suffix=-alpine,pattern=\d+,group=0,value=
106-
type=ref,enable=true,priority=600,prefix=,suffix=-alpine3.20,event=branch
106+
type=ref,enable=${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name != 'schedule' }},priority=600,prefix=,suffix=-alpine3.20,event=branch
107107
type=edge,enable=true,priority=700,prefix=,suffix=-alpine3.20,branch=dev
108-
type=raw,enable={{is_default_branch}},priority=200,prefix=,suffix=,value=alpine3.20
108+
type=raw,enable=${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name != 'schedule' }},priority=200,prefix=,suffix=,value=alpine3.20
109109
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/') }},priority=200,prefix=,suffix=,value=alpine3.20
110110
type=schedule,enable=true,priority=1000,prefix=,suffix=-alpine3.20,pattern=nightly
111111
type=match,enable=true,priority=800,prefix=,suffix=-alpine3.20,pattern=\d+.\d+.\d+,group=0,value=

.github/workflows/debian-frpc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ jobs:
8787
prefix=
8888
suffix=
8989
tags: |
90-
type=ref,enable=true,priority=600,prefix=,suffix=-debian,event=branch
90+
type=ref,enable=${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name != 'schedule' }},priority=600,prefix=,suffix=-debian,event=branch
9191
type=edge,enable=true,priority=700,prefix=,suffix=-debian,branch=dev
92-
type=raw,enable={{is_default_branch}},priority=200,prefix=,suffix=,value=debian
92+
type=raw,enable=${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name != 'schedule' }},priority=200,prefix=,suffix=,value=debian
9393
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/') }},priority=200,prefix=,suffix=,value=debian
9494
type=schedule,enable=true,priority=1000,prefix=,suffix=-debian,pattern=nightly
9595
type=match,enable=true,priority=800,prefix=,suffix=-debian,pattern=\d+.\d+.\d+,group=0,value=
9696
type=match,enable=true,priority=800,prefix=,suffix=-debian,pattern=\d+.\d+,group=0,value=
9797
type=match,enable=${{ !startsWith(github.ref, 'refs/tags/0.') && !startsWith(github.ref, 'refs/tags/v0.') && !startsWith(github.ref, 'refs/tags/V0.') && !startsWith(github.ref, 'refs/tags/debian-0.') && !startsWith(github.ref, 'refs/tags/debian-v0.') && !startsWith(github.ref, 'refs/tags/debian-V0.') }},priority=800,prefix=,suffix=-debian,pattern=\d+,group=0,value=
98-
type=ref,enable=true,priority=600,prefix=,suffix=-bookworm,event=branch
98+
type=ref,enable=${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name != 'schedule' }},priority=600,prefix=,suffix=-bookworm,event=branch
9999
type=edge,enable=true,priority=700,prefix=,suffix=-bookworm,branch=dev
100-
type=raw,enable={{is_default_branch}},priority=200,prefix=,suffix=,value=bookworm
100+
type=raw,enable=${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name != 'schedule' }},priority=200,prefix=,suffix=,value=bookworm
101101
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/') }},priority=200,prefix=,suffix=,value=bookworm
102102
type=schedule,enable=true,priority=1000,prefix=,suffix=-bookworm,pattern=nightly
103103
type=match,enable=true,priority=800,prefix=,suffix=-bookworm,pattern=\d+.\d+.\d+,group=0,value=

.github/workflows/debian-frps.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ jobs:
8787
prefix=
8888
suffix=
8989
tags: |
90-
type=ref,enable=true,priority=600,prefix=,suffix=-debian,event=branch
90+
type=ref,enable=${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name != 'schedule' }},priority=600,prefix=,suffix=-debian,event=branch
9191
type=edge,enable=true,priority=700,prefix=,suffix=-debian,branch=dev
92-
type=raw,enable={{is_default_branch}},priority=200,prefix=,suffix=,value=debian
92+
type=raw,enable=${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name != 'schedule' }},priority=200,prefix=,suffix=,value=debian
9393
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/') }},priority=200,prefix=,suffix=,value=debian
9494
type=schedule,enable=true,priority=1000,prefix=,suffix=-debian,pattern=nightly
9595
type=match,enable=true,priority=800,prefix=,suffix=-debian,pattern=\d+.\d+.\d+,group=0,value=
9696
type=match,enable=true,priority=800,prefix=,suffix=-debian,pattern=\d+.\d+,group=0,value=
9797
type=match,enable=${{ !startsWith(github.ref, 'refs/tags/0.') && !startsWith(github.ref, 'refs/tags/v0.') && !startsWith(github.ref, 'refs/tags/V0.') && !startsWith(github.ref, 'refs/tags/debian-0.') && !startsWith(github.ref, 'refs/tags/debian-v0.') && !startsWith(github.ref, 'refs/tags/debian-V0.') }},priority=800,prefix=,suffix=-debian,pattern=\d+,group=0,value=
98-
type=ref,enable=true,priority=600,prefix=,suffix=-bookworm,event=branch
98+
type=ref,enable=${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name != 'schedule' }},priority=600,prefix=,suffix=-bookworm,event=branch
9999
type=edge,enable=true,priority=700,prefix=,suffix=-bookworm,branch=dev
100-
type=raw,enable={{is_default_branch}},priority=200,prefix=,suffix=,value=bookworm
100+
type=raw,enable=${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.event_name != 'schedule' }},priority=200,prefix=,suffix=,value=bookworm
101101
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/') }},priority=200,prefix=,suffix=,value=bookworm
102102
type=schedule,enable=true,priority=1000,prefix=,suffix=-bookworm,pattern=nightly
103103
type=match,enable=true,priority=800,prefix=,suffix=-bookworm,pattern=\d+.\d+.\d+,group=0,value=

0 commit comments

Comments
 (0)