diff --git a/.github/workflows/release-pullrequest.yaml b/.github/workflows/release-pullrequest.yaml index b953971..bc33617 100644 --- a/.github/workflows/release-pullrequest.yaml +++ b/.github/workflows/release-pullrequest.yaml @@ -39,18 +39,18 @@ jobs: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.PRIVATE_KEY }} - - name: Extract latest App Version - uses: tdemin/find-latest-tag@v1 - id: app_version - with: - repo: https://${{ steps.authenticate.outputs.token }}@github.com/${{ env.REPO_APP_NAME }}.git - - name: Extract latest Chart Version uses: tdemin/find-latest-tag@v1 id: chart_version with: repo: https://${{ steps.authenticate.outputs.token }}@github.com/${{ github.repository }}.git + - name: Extract latest App Version + uses: tdemin/find-latest-tag@v1 + id: app_version + with: + repo: https://${{ steps.authenticate.outputs.token }}@github.com/${{ env.REPO_APP_NAME }}.git + - name: Checkout uses: actions/checkout@v3 @@ -68,14 +68,11 @@ jobs: - name: Print latest App Version run: echo ${{ steps.app_version.outputs.tag }} - - name: Replace APP_VERSION in ./chart/Chart.yaml + - name: Replace APP_VERSION in Chart.yaml run: sed -i 's/APP_VERSION/${{ steps.app_version.outputs.tag }}/g' ./chart/Chart.yaml - name: Set up Helm uses: azure/setup-helm@v4.1.0 - - name: Helm Dependency Update - run: helm dependency update ./chart - - name: Helm lint run: helm lint ./chart \ No newline at end of file diff --git a/chart/templates/clusterrole.yaml b/chart/templates/clusterrole.yaml index ddbcb15..324a3d2 100644 --- a/chart/templates/clusterrole.yaml +++ b/chart/templates/clusterrole.yaml @@ -33,3 +33,7 @@ rules: - apiGroups: [""] resources: ["events"] verbs: ["create", "patch", "update"] + + - apiGroups: ["events.k8s.io"] + resources: ["events"] + verbs: ["create", "patch", "update"]