Skip to content

Commit

Permalink
test helm-chart repo status
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanMelnyk113 committed Dec 14, 2023
1 parent feb9865 commit 93c6eba
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/charttest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: ChartSync

on:
pull_request:
branches:
- main

env:
CHART_PATH: "${{ github.workspace }}/charts/egressd"

jobs:
release_chart:
name: Release Helm Chart
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: '0'

- name: Get release tag
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Checkout helm-charts
# The cr tool only works if the target repository is already checked out
uses: actions/checkout@v2
with:
fetch-depth: 0
repository: castai/helm-charts
path: helm-charts
token: ${{ secrets.HELM_CHARTS_REPO_TOKEN }}

- name: Sync chart to helm-charts github
run: |
cd helm-charts
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git checkout egressd
echo "status before" && git status
cp -r ../charts .
echo "status after" && git status
# git add .
# git commit -m "[egressd] Update chart to ${{env.RELEASE_TAG}}"
# git push

0 comments on commit 93c6eba

Please sign in to comment.