From a04c56e742812dc55aea25f29aa1ddd92a790349 Mon Sep 17 00:00:00 2001 From: huangzhangshu <109708205+JashBook@users.noreply.github.com> Date: Wed, 6 Dec 2023 20:46:24 +0800 Subject: [PATCH] chore: add install crd for release chart (#234) * chore: make ops post release chart * chore: auto approve --- .github/workflows/auto-approve.yml | 19 +++++++++++++++++++ .github/workflows/release-charts-check.yml | 10 ++++++++++ .../workflows/release-charts-enterprise.yml | 10 ++++++++++ .github/workflows/release-charts.yml | 10 ++++++++++ 4 files changed, 49 insertions(+) create mode 100644 .github/workflows/auto-approve.yml diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 0000000..e36af15 --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -0,0 +1,19 @@ +name: Auto Approve +on: + issue_comment: + types: [created] + +env: + GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + +jobs: + auto-approve: + name: Auto Approve + if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/approve') + runs-on: ubuntu-latest + steps: + - name: Automatic Approve + uses: hmarr/auto-approve-action@v3 + with: + github-token: ${{ env.GITHUB_TOKEN }} + pull-request-number: ${{ github.event.issue.number }} diff --git a/.github/workflows/release-charts-check.yml b/.github/workflows/release-charts-check.yml index 3c2c65f..99204a7 100644 --- a/.github/workflows/release-charts-check.yml +++ b/.github/workflows/release-charts-check.yml @@ -63,6 +63,11 @@ on: type: string required: false default: 'v1.26' + MAKE_OPS_POST: + description: "The post ops name of makefile" + type: string + required: false + default: '' env: @@ -156,6 +161,11 @@ jobs: version: ${{ inputs.K3S_VERSION }} github-token: ${{ env.CR_TOKEN }} + - name: make post + if: inputs.MAKE_OPS_POST + run: | + make ${{ inputs.MAKE_OPS_POST }} + - name: helm validate if: inputs.CHART_NAME run: | diff --git a/.github/workflows/release-charts-enterprise.yml b/.github/workflows/release-charts-enterprise.yml index 9ae2147..3be988d 100644 --- a/.github/workflows/release-charts-enterprise.yml +++ b/.github/workflows/release-charts-enterprise.yml @@ -73,6 +73,11 @@ on: type: string required: false default: 'v1.26' + MAKE_OPS_POST: + description: "The post ops name of makefile" + type: string + required: false + default: '' env: @@ -181,6 +186,11 @@ jobs: version: ${{ inputs.K3S_VERSION }} github-token: ${{ env.CR_TOKEN }} + - name: make post + if: inputs.MAKE_OPS_POST + run: | + make ${{ inputs.MAKE_OPS_POST }} + - name: helm validate if: inputs.CHART_NAME run: | diff --git a/.github/workflows/release-charts.yml b/.github/workflows/release-charts.yml index 3a5c562..3763067 100644 --- a/.github/workflows/release-charts.yml +++ b/.github/workflows/release-charts.yml @@ -83,6 +83,11 @@ on: type: string required: false default: 'v1.26' + MAKE_OPS_POST: + description: "The post ops name of makefile" + type: string + required: false + default: '' env: @@ -190,6 +195,11 @@ jobs: version: ${{ inputs.K3S_VERSION }} github-token: ${{ env.CR_TOKEN }} + - name: make post + if: inputs.MAKE_OPS_POST + run: | + make ${{ inputs.MAKE_OPS_POST }} + - name: helm validate if: inputs.CHART_NAME run: |