Merge pull request #1883 from crazytaxii/fix #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Charts | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'charts/**' | |
jobs: | |
sync-charts: | |
if: github.repository == 'openyurtio/openyurt' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get the version | |
id: get_version | |
run: | | |
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} | |
echo ::set-output name=TAG::${GITHUB_REF#refs/tags/} | |
- name: Sync to openyurt-helm Repo | |
env: | |
SSH_DEPLOY_KEY: ${{ secrets.SYNC_CHARTS_SECRET }} | |
VERSION: ${{ steps.get_version.outputs.VERSION }} | |
TAG: ${{ steps.get_version.outputs.TAG }} | |
COMMIT_ID: ${{ github.sha }} | |
run: | | |
bash ./hack/lib/sync-charts.sh |