Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/chart-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,27 @@ name: chart-sync
# Controls when the workflow will run
on:
# Triggers the workflow on publishing new release
release:
types: [released]

pull_request:
types:
- closed
branches:
- 'main'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
sync:
if: github.head_ref == 'release-bot' && github.event.pull_request.merged == true
# The type of runner that the job will run on
runs-on: ubuntu-latest
name: chart-sync
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: devtron-labs/git-repo-sync@v0.1.9
- uses: devtron-labs/git-repo-sync@master
with:
script-file: ${{ secrets.CHART_SYNC_SCRIPT_FILE }}
git-target-repo: ${{ secrets.GIT_TARGET_REPO }}
Expand Down