Skip to content

Commit 19b66d2

Browse files
authored
updated chart-sync workflow (#1679)
1 parent 1f04e54 commit 19b66d2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/chart-sync.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,27 @@ name: chart-sync
33
# Controls when the workflow will run
44
on:
55
# Triggers the workflow on publishing new release
6-
release:
7-
types: [released]
8-
6+
pull_request:
7+
types:
8+
- closed
9+
branches:
10+
- 'main'
911
# Allows you to run this workflow manually from the Actions tab
1012
workflow_dispatch:
1113

1214
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1315
jobs:
1416
# This workflow contains a single job called "build"
1517
sync:
18+
if: github.head_ref == 'release-bot' && github.event.pull_request.merged == true
1619
# The type of runner that the job will run on
1720
runs-on: ubuntu-latest
1821
name: chart-sync
1922
steps:
2023
- uses: actions/checkout@v2
2124
with:
2225
fetch-depth: 0
23-
- uses: devtron-labs/git-repo-sync@v0.1.9
26+
- uses: devtron-labs/git-repo-sync@master
2427
with:
2528
script-file: ${{ secrets.CHART_SYNC_SCRIPT_FILE }}
2629
git-target-repo: ${{ secrets.GIT_TARGET_REPO }}

0 commit comments

Comments
 (0)