|
1 | 1 | --- |
2 | | - # GitHub Actions workflow to upgrade the Helm chart dependencies on our modules. |
| 2 | + # GitHub Actions workflow to update the Helm chart dependencies on our modules. |
3 | 3 | # |
4 | 4 | # IMPORTANT: This workflow is called by other workflows in our DevOps Stack repositories and it is centralized here in |
5 | 5 | # order to be easily maintained across modules. Because of this, please make sure you're not introducing any breaking |
6 | 6 | # changes when modifying this workflow. |
7 | 7 |
|
8 | | - name: "modules-chart-upgrade" |
| 8 | + name: "modules-chart-update" |
9 | 9 |
|
10 | 10 | on: |
11 | 11 | workflow_call: |
12 | 12 | inputs: |
13 | | - upgrade-strategy: |
| 13 | + update-strategy: |
14 | 14 | description: "Upgrade strategy to use. Valid values are 'major', 'minor' or 'patch'" |
15 | 15 | type: string |
16 | 16 | required: true |
17 | 17 | excluded-dependencies: |
18 | | - description: "Comma-separated list of dependencies to exclude from upgrade (i.e. 'dependency1,dependency2,dependency3')" |
| 18 | + description: "Comma-separated list of dependencies to exclude from the update (i.e. 'dependency1,dependency2,dependency3')" |
19 | 19 | type: string |
20 | 20 | required: false |
21 | 21 | default: "" |
22 | 22 | dry-run: |
23 | | - description: "Whether to run the upgrade in dry-run mode or not" |
| 23 | + description: "Whether to run the update in dry-run mode or not" |
24 | 24 | type: boolean |
25 | 25 | required: false |
26 | 26 | default: false |
|
43 | 43 | id: find-charts |
44 | 44 | run: cd charts && echo "charts=$(find . -maxdepth 2 -name 'Chart.yaml' -exec dirname {} \; | sed 's|^\./||' | sort -u | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT |
45 | 45 |
|
46 | | - chart-upgrade: |
| 46 | + chart-update: |
47 | 47 | runs-on: ubuntu-latest |
48 | 48 |
|
49 | 49 | needs: list-charts |
|
66 | 66 | uses: actions/checkout@v3 |
67 | 67 |
|
68 | 68 | - name: "Upgrade Helm chart dependencies" |
69 | | - id: deps-upgrade |
70 | | - uses: camptocamp/helm-dependency-upgrade-action@v0.3.3 |
| 69 | + id: deps-update |
| 70 | + uses: camptocamp/helm-dependency-update-action@v0.3.3 |
71 | 71 | with: |
72 | 72 | chart-path: "charts/${{ matrix.chart-name }}" |
73 | 73 | readme-path: "README.adoc" |
74 | 74 | excluded-dependencies: ${{ inputs.excluded-dependencies }} |
75 | | - upgrade-strategy: "${{ inputs.upgrade-strategy }}" |
| 75 | + update-strategy: "${{ inputs.update-strategy }}" |
76 | 76 | dry-run: "${{ inputs.dry-run }}" |
77 | 77 |
|
78 | | - - name: "Create Pull Request for a minor/patch upgrade" |
79 | | - if: ${{ !inputs.dry-run && steps.deps-upgrade.outputs.upgrade-type != 'none' && !steps.deps-upgrade.outputs.upgrade-type != 'major' }} |
| 78 | + - name: "Create Pull Request for a minor/patch update" |
| 79 | + if: ${{ !inputs.dry-run && steps.deps-update.outputs.update-type != 'none' && !steps.deps-update.outputs.update-type != 'major' }} |
80 | 80 | id: minor-pr |
81 | 81 | uses: peter-evans/create-pull-request@v3 |
82 | 82 | env: |
83 | | - pr-title: "chore(chart): ${{ steps.deps-upgrade.outputs.upgrade-type }} upgrade of dependencies on ${{ matrix.chart-name }} chart" |
84 | | - branch: "chart-autoupgrade-${{ steps.deps-upgrade.outputs.upgrade-type }}-${{ matrix.chart-name }}" |
85 | | - labels: "chart-autoupgrade-${{ steps.deps-upgrade.outputs.upgrade-type }}" |
| 83 | + pr-title: "feat(chart): ${{ steps.deps-update.outputs.update-type }} update of dependencies on ${{ matrix.chart-name }} chart" |
| 84 | + branch: "chart-autoupdate-${{ steps.deps-update.outputs.update-type }}-${{ matrix.chart-name }}" |
| 85 | + labels: "chart-autoupdate-${{ steps.deps-update.outputs.update-type }}" |
86 | 86 |
|
87 | 87 | with: |
88 | 88 | commit-message: ${{ env.pr-title }} |
89 | 89 | committer: ${{ env.committer }} |
90 | | - branch: "chart-autoupgrade-${{ steps.deps-upgrade.outputs.upgrade-type }}-${{ matrix.chart-name }}" |
| 90 | + branch: "chart-autoupdate-${{ steps.deps-update.outputs.update-type }}-${{ matrix.chart-name }}" |
91 | 91 | title: ${{ env.pr-title }} |
92 | | - labels: "chart-autoupgrade-${{ steps.deps-upgrade.outputs.upgrade-type }}" |
| 92 | + labels: "chart-autoupdate-${{ steps.deps-update.outputs.update-type }}" |
93 | 93 | body: | |
94 | 94 | :robot: I have updated the chart *beep* *boop* |
95 | 95 | --- |
96 | 96 |
|
97 | 97 | ## Description of the changes |
98 | 98 |
|
99 | | - This PR upgrades the dependencies of the **${{ matrix.chart-name }}** Helm chart. The maximum version bump was a **${{ steps.deps-upgrade.outputs.upgrade-type }}**. |
| 99 | + This PR updates the dependencies of the **${{ matrix.chart-name }}** Helm chart. |
| 100 | + |
| 101 | + The maximum version bump was a **${{ steps.deps-update.outputs.update-type }}** step. |
100 | 102 |
|
101 | | - - name: "Create Pull Request for a major upgrade" |
102 | | - if: ${{ !inputs.dry-run && steps.deps-upgrade.outputs.upgrade-type != 'none' && steps.deps-upgrade.outputs.upgrade-type == 'major' }} |
| 103 | + - name: "Create Pull Request for a major update" |
| 104 | + if: ${{ !inputs.dry-run && steps.deps-update.outputs.update-type != 'none' && steps.deps-update.outputs.update-type == 'major' }} |
103 | 105 | id: major-pr |
104 | 106 | uses: peter-evans/create-pull-request@v3 |
105 | 107 | env: |
106 | | - pr-title: "chore!(chart): major upgrade of dependencies on ${{ matrix.chart-name }} chart" |
| 108 | + pr-title: "feat!(chart): major update of dependencies on ${{ matrix.chart-name }} chart" |
107 | 109 | with: |
108 | 110 | commit-message: ${{ env.pr-title }} |
109 | 111 | committer: ${{ env.committer }} |
110 | | - branch: "chart-autoupgrade-major-${{ matrix.chart-name }}" |
| 112 | + branch: "chart-autoupdate-major-${{ matrix.chart-name }}" |
111 | 113 | title: ${{ env.pr-title }} |
112 | | - labels: "chart-autoupgrade-major" |
| 114 | + labels: "chart-autoupdate-major" |
113 | 115 | body: | |
114 | 116 | :robot: I have updated the chart *beep* *boop* |
115 | 117 | --- |
116 | 118 |
|
117 | 119 | ## Description of the changes |
118 | 120 |
|
119 | | - This PR upgrades the dependencies of the **${{ matrix.chart-name }}** Helm chart. . |
| 121 | + This PR updates the dependencies of the **${{ matrix.chart-name }}** Helm chart. . |
120 | 122 |
|
121 | | - :warning: This was a **major** upgrade!. Please check the changelog of the updated dependencies and take notice of any breaking changes before merging. :warning: |
| 123 | + :warning: This was a **major** update!. Please check the changelog of the updated dependencies and take notice of any breaking changes before merging. :warning: |
122 | 124 |
|
123 | 125 | add-pr-to-project: |
124 | | - needs: chart-upgrade |
125 | | - if: ${{ needs.chart-upgrade.outputs.minor-pr-number || needs.chart-upgrade.outputs.major-pr-number }} |
| 126 | + needs: chart-update |
| 127 | + if: ${{ needs.chart-update.outputs.minor-pr-number || needs.chart-update.outputs.major-pr-number }} |
126 | 128 | uses: camptocamp/devops-stack/.github/workflows/pr-issues-project.yaml@main |
127 | 129 | secrets: |
128 | 130 | PROJECT_APP_PRIVATE_KEY: ${{ secrets.PROJECT_APP_PRIVATE_KEY }} |
0 commit comments