test helm-chart repo status #3
Workflow file for this run
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: ChartSync | |
on: | |
pull_request: | |
branches: | |
- dev | |
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@v3 | |
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@v3 | |
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 | |
ls -l charts | |
cp -r ../charts . | |
echo "status after" && git status | |
ls -l charts | |
# git add . | |
# git commit -m "[egressd] Update chart to ${{env.RELEASE_TAG}}" | |
# git push | |