Skip to content

Commit

Permalink
fix: add branch check
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Dec 27, 2024
1 parent d89e9d7 commit 4f25cde
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker-image-en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Publish Docker image (English)

on:
push:
branches:
- main
tags:
- 'v*.*.*'
workflow_dispatch:
Expand All @@ -14,6 +12,7 @@ on:
jobs:
push_to_registries:
name: Push Docker image to multiple registries
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
packages: write
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Publish Docker image

on:
push:
branches:
- main
tags:
- 'v*.*.*'
workflow_dispatch:
Expand All @@ -15,6 +13,7 @@ jobs:
push_to_registries:
name: Push Docker image to multiple registries
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
permissions:
packages: write
contents: read
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/linux-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ permissions:

on:
push:
branches:
- main
tags:
- 'v*.*.*'
- '!*-alpha*'
Expand All @@ -17,6 +15,7 @@ on:
jobs:
release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ permissions:

on:
push:
branches:
- main
tags:
- 'v*.*.*'
- '!*-alpha*'
Expand All @@ -17,6 +15,7 @@ on:
jobs:
release:
runs-on: macos-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/windows-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ permissions:

on:
push:
branches:
- main
tags:
- 'v*.*.*'
- '!*-alpha*'
Expand All @@ -17,6 +15,7 @@ on:
jobs:
release:
runs-on: windows-latest
if: github.ref == 'refs/heads/main'
defaults:
run:
shell: bash
Expand Down

0 comments on commit 4f25cde

Please sign in to comment.