shell script & PR commands added
name: Update Helm Repo Files
on:
- push:
+ release:
paths:
- - 'deploy/helm/kuberhealhty/**'
+ -
branches:
- master
-
-
-#cd ./deploy/helm/kuberhealthy
-#helm lint ./deploy/helm/kuberhealthy
-#helm package ./deploy/helm/kuberhealthy
-#helm repoo index --url https://comcast.github.io/kuberhealthy
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps
+ - name: Checkout
+ - uses: actions/Checkout@v2.0.0
+#
+ - name: Package and Index
+ command: |
+ cd ./deploy/helm/kuberhealthy
+ helm lint ./
+ if [ "$?" -ne "0" ]
+ then
+ echo "Linting reports error"
+ exit 1
+ fi
+ helm package ./ -d ../../../helm-repos/archives
+ helm repo index ./ --merge index.yaml --url https://comcast.github.io/kuberhealthy
+ cp ./index.yaml ../../../helm-repos/
+#
+ - name: Create Pull Request
+ uses: peter-evans/create-pull-request@v2.4.4
+ with:
+ # GITHUB_TOKEN or a repo scoped PAT
+ token: ${{ secrets.GITHUB_TOKEN }}
+ # Relative path under $GITHUB_WORKSPACE to the repository.
+ #path: # optional
+ # The message to use when committing changes.
+ commit-message: "Package and Index for Helm Repo"
+ # The committer name and email address.
+ #author: "GitHub Automatic Template Render Job"
+ # The author name and email address.
+ committer: "Github Actions <action@github.com>"
+ # The title of the pull request.
+ title: "Package and Index for Helm Repo"
+ # The body of the pull request.
+ body: "An automatic PR for updating of the Helm Repo based on releases tag."
+ # A comma separated list of labels.
+ #labels: # optional
+ # A comma separated list of assignees (GitHub usernames).
+ #assignees: # optional
+ # A comma separated list of reviewers (GitHub usernames) to request a review from.
+ #reviewers: # optional
+ # A comma separated list of GitHub teams to request a review from.
+ #team-reviewers: # optional
+ # The number of the milestone to associate this pull request with.
+ #milestone: # optional
+ # The name of the project for which a card should be created.
+ #project: # optional
+ # The name of the project column under which a card should be created.
+ #project-column: # optional
+ # The pull request branch name.
+ branch: Helm_Repo_Update
+ # The pull request base branch.
+ base: master
+ # The branch suffix type.
+ #branch-suffix: # optional
