Skip to content

Commit

Permalink
ci(workflow): update latest tag workflow trigger on push to main branch
Browse files Browse the repository at this point in the history
Because

- We have to trigger latest tag workflow run on macOS post merge in main
for security concern

This commit

- update latest tag workflow trigger on push to main branch
  • Loading branch information
donch1989 committed Oct 13, 2023
1 parent 86c4dd5 commit f7eaef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/helm-integration-test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
make integration-test API_GATEWAY_URL=localhost:${API_GATEWAY_PORT}
helm-integration-test-latest-mac:
if: inputs.target == 'latest'
if: inputs.target == 'latest' && github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' && github.event.pull_request.merged == true
runs-on: [self-hosted,macOS,vdp]
steps:
- name: Set up environment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
make integration-test API_GATEWAY_URL=localhost:${API_GATEWAY_PORT}
integration-test-latest-mac:
if: inputs.target == 'latest'
if: inputs.target == 'latest' && github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' && github.event.pull_request.merged == true
runs-on: [self-hosted,macOS,vdp]
steps:
- name: Set up environment
Expand Down

0 comments on commit f7eaef5

Please sign in to comment.