-
Notifications
You must be signed in to change notification settings - Fork 484
36 lines (34 loc) · 1.22 KB
/
chart-sync.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: chart-sync
# Controls when the workflow will run
on:
# Triggers the workflow on publishing new release on main branch and in charts directory only
push:
branches:
- 'main'
paths:
- 'charts/**'
# 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:
# 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@master
with:
script-file: ${{ secrets.CHART_SYNC_SCRIPT_FILE }}
git-target-repo: ${{ secrets.GIT_TARGET_REPO }}
git-source-repo: ${{ secrets.GIT_SOURCE_REPO }}
git-target-useremail: ${{ secrets.GH_SYSTEMSDT_EMAIL }}
git-target-username: ${{ vars.GH_SYSTEMSDT_USERNAME }}
git-target-token: ${{ secrets.GH_SYSTEMSDT_TOKEN }}
git-target-dir: ${{ secrets.GIT_TARGET_DIR }}
git-source-dir: ${{ secrets.GIT_SOURCE_DIR }}
working-dir: ${{ secrets.WORKING_DIR }}
RELEASE_BRANCH: "main"