File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3,24 +3,27 @@ name: chart-sync
33# Controls when the workflow will run
44on :
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
1315jobs :
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 }}
You can’t perform that action at this time.
0 commit comments