-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from catenax-ng/main
docs|chore: backport of release/tag workflow improvements/shortcomings and new trgs
- Loading branch information
Showing
6 changed files
with
40 additions
and
31 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,14 +25,14 @@ on: | |
push: | ||
branches: | ||
- main | ||
- 'releases/**' | ||
- 'release/*' | ||
paths: | ||
- .github/workflows/** | ||
- charts/** | ||
pull_request: | ||
branches: | ||
- main | ||
- 'releases/**' | ||
- 'release/*' | ||
paths: | ||
- .github/workflows/** | ||
- charts/** | ||
|
@@ -76,12 +76,12 @@ jobs: | |
uses: helm/[email protected] | ||
Check warning on line 76 in .github/workflows/helm-chart-lint.yml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
|
||
|
||
- name: Run chart-testing (lint) | ||
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --config charts/config/chart-testing-config.yaml | ||
run: ct lint --target-branch ${{ github.base_ref || github.ref_name }} --config charts/config/chart-testing-config.yaml | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | ||
changed=$(ct list-changed --target-branch ${{ github.base_ref || github.ref_name }}) | ||
if [[ -n "$changed" ]]; then | ||
echo "CHART_CHANGED=true" >> $GITHUB_ENV | ||
fi | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,17 +22,14 @@ name: Release Charts | |
on: | ||
# May be invoked manually | ||
workflow_dispatch: | ||
branches: | ||
- main | ||
- 'releases/**' | ||
# Or by pushing to the chart dir of some dev/ release branch | ||
push: | ||
# prevent unnecessary GH action runs for files outside of charts folder | ||
paths: | ||
- 'charts/**' | ||
branches: | ||
- main | ||
- 'releases/**' | ||
- 'release/*' | ||
|
||
jobs: | ||
release: | ||
|
@@ -60,4 +57,4 @@ jobs: | |
- name: Run chart-releaser | ||
uses: helm/[email protected] | ||
Check warning on line 58 in .github/workflows/helm-chart-release.yml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 58 in .github/workflows/helm-chart-release.yml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
Check warning on line 58 in .github/workflows/helm-chart-release.yml GitHub Actions / Analyze[MEDIUM] Unpinned Actions Full Length Commit SHA
|
||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
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
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
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