Update Helm release postgresql from 15.3.5 to ~15.4.0 (helm/defectdojo/Chart.yaml) #371
Workflow file for this run
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: 'Referesh Chart.lock' | |
on: | |
pull_request_target: | |
branches: | |
- dev | |
paths: | |
- 'helm/defectdojo/Chart.yaml' | |
permissions: | |
contents: write | |
jobs: | |
update-chart-lock: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout bitnami/charts | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
path: charts | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Helm | |
uses: azure/setup-helm@v4 | |
with: | |
version: v3.4.0 | |
- name: Execute generate new Chart.lock file | |
run: | | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
helm dependency list ./charts/helm/defectdojo | |
helm dependency update ./charts/helm/defectdojo | |
- name: Push changes | |
run: | | |
# Push all the changes | |
cd charts | |
if git status -s | grep helm; then | |
git config user.name "DefectDojo" | |
git config user.email "[email protected]" | |
git add . && git commit -am "Update helm lock file" --signoff && git push | |
fi |