update #3687
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: Check Chart | |
on: | |
push: | |
paths: | |
- "addons/**" | |
- "addons-cluster/**" | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
HELM_VERSION: v3.15.4 | |
jobs: | |
check-addons-helm: | |
strategy: | |
fail-fast: false | |
matrix: | |
registry: [ "", "dockerhub", "aliyun" ] | |
uses: apecloud/apecloud-cd/.github/workflows/[email protected] | |
with: | |
CHART_DIR: "addons" | |
APECD_REF: "v0.1.68" | |
SET_REGISTRY: "${{ matrix.registry }}" | |
secrets: inherit | |
check-addons-cluster-helm: | |
uses: apecloud/apecloud-cd/.github/workflows/[email protected] | |
with: | |
CHART_DIR: "addons-cluster" | |
APECD_REF: "v0.1.68" | |
secrets: inherit | |
update-readme: | |
if: ${{ github.ref_name != 'main' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: ${{ env.HELM_VERSION }} | |
- uses: actions/checkout@v4 | |
- name: update readme | |
id: update-readme | |
run: | | |
bash hack/update-readme.sh | |
FILE_CHANGES=`git diff --name-only ${{ github.sha }}` | |
if [[ ! -z "$FILE_CHANGES" ]]; then | |
echo $FILE_CHANGES | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "[email protected]" | |
git commit -a -m "chore: auto update readme" | |
fi | |
echo file_changes=$FILE_CHANGES >> $GITHUB_OUTPUT | |
- name: Push readme changes | |
uses: ad-m/github-push-action@master | |
if: ${{ steps.update-readme.outputs.file_changes }} | |
with: | |
github_token: ${{ env.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |