mirror of
https://github.com/ysoftdevs/imagepullsecret-injector.git
synced 2026-03-21 16:49:54 +01:00
Fix chart-releaser condition
This commit is contained in:
14
.github/workflows/release-chart.yaml
vendored
14
.github/workflows/release-chart.yaml
vendored
@@ -4,8 +4,9 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
# TODO: add this back
|
||||||
- 'helm/**'
|
# paths:
|
||||||
|
# - 'helm/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -27,10 +28,14 @@ jobs:
|
|||||||
version: v3.4.0
|
version: v3.4.0
|
||||||
|
|
||||||
- name: Helm version checker
|
- name: Helm version checker
|
||||||
id: helm-version-checker
|
id: helm_version_checker
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
newVersion="$(helm show chart helm/imagepullsecret-injector | grep version: | awk '{print $2}')"
|
newVersion="$(helm show chart helm/imagepullsecret-injector | grep version: | awk '{print $2}')"
|
||||||
|
|
||||||
|
helm repo add imagepullsecret-injector https://ysoftdevs.github.io/imagepullsecret-injector
|
||||||
|
helm repo update
|
||||||
|
|
||||||
uploadedVersions="$(helm search repo imagepullsecret-injector/imagepullsecret-injector -l | tail -n +2 | awk '{print $2}')"
|
uploadedVersions="$(helm search repo imagepullsecret-injector/imagepullsecret-injector -l | tail -n +2 | awk '{print $2}')"
|
||||||
for uploadedVersion in $uploadedVersions; do
|
for uploadedVersion in $uploadedVersions; do
|
||||||
if [ "$newVersion" == "$uploadedVersion" ]; then
|
if [ "$newVersion" == "$uploadedVersion" ]; then
|
||||||
@@ -38,9 +43,8 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
if: ${{ step.helm-version-checker.outcome == 'success' }}
|
if: steps.helm_version_checker.outcome == 'success'
|
||||||
uses: helm/chart-releaser-action@master
|
uses: helm/chart-releaser-action@master
|
||||||
with:
|
with:
|
||||||
charts_dir: 'helm'
|
charts_dir: 'helm'
|
||||||
|
|||||||
Reference in New Issue
Block a user