Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tainnsre committed Nov 16, 2022
1 parent e91d78d commit e78e2c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/service-a.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ jobs:


build-prod:
if: startsWith(github.ref, 'refs/tags/v')
if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
run: echo "Master release ${{ github.event.release.name }}, ${{ github.head_ref }}"

deploy-prod:
if: startsWith(github.ref, 'refs/tags/v')
if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: build-prod
steps:
Expand Down Expand Up @@ -259,5 +259,5 @@ jobs:
run: echo "Master release ${{ github.event.release.name }}, ${{ github.head_ref }}, ${{ github.event.master_branch }}"

- name: ingress to rke
if: ${{ (env.DEPLOYMENTS == 'true') }}
if: ${{ (env.DEPLOYMENTS == 'true') }} && (github.ref == 'refs/tags/v')
run: echo "Master release ${{ github.event.release.name }}, ${{ github.head_ref }}, ${{ github.event.master_branch }}"

0 comments on commit e78e2c0

Please sign in to comment.