Skip to content

Commit

Permalink
chore: add install crd for release chart (#234)
Browse files Browse the repository at this point in the history
* chore: make ops post release chart

* chore: auto approve
  • Loading branch information
JashBook authored Dec 6, 2023
1 parent 5724730 commit a04c56e
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -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 }}
10 changes: 10 additions & 0 deletions .github/workflows/release-charts-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release-charts-enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit a04c56e

Please sign in to comment.