mirror of
https://github.com/ysoftdevs/secret-duplicator.git
synced 2026-04-21 00:11:32 +02:00
commented out version checker
This commit is contained in:
36
.github/workflows/release-chart.yaml
vendored
36
.github/workflows/release-chart.yaml
vendored
@@ -24,24 +24,24 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
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: |
|
||||||
helm repo add secret-duplicator https://ysoftdevs.github.io/secret-duplicator
|
# helm repo add secret-duplicator https://ysoftdevs.github.io/secret-duplicator
|
||||||
helm repo update
|
# helm repo update
|
||||||
|
#
|
||||||
newVersion="$(helm show chart helm/secret-duplicator | grep version: | awk '{print $2}')"
|
# newVersion="$(helm show chart helm/secret-duplicator | grep version: | awk '{print $2}')"
|
||||||
echo "Trying to upload version $newVersion"
|
# echo "Trying to upload version $newVersion"
|
||||||
uploadedVersions="$(helm search repo secret-duplicator/secret-duplicator -l | tail -n +2 | awk '{print $2}')"
|
# uploadedVersions="$(helm search repo secret-duplicator/secret-duplicator -l | tail -n +2 | awk '{print $2}')"
|
||||||
echo "Found these versions in upstream: $uploadedVersions"
|
# echo "Found these versions in upstream: $uploadedVersions"
|
||||||
for uploadedVersion in $uploadedVersions; do
|
# for uploadedVersion in $uploadedVersions; do
|
||||||
if [ "$newVersion" == "$uploadedVersion" ]; then
|
# if [ "$newVersion" == "$uploadedVersion" ]; then
|
||||||
echo "Found a matching version in upstream, failing this task and skipping the release"
|
# echo "Found a matching version in upstream, failing this task and skipping the release"
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
done
|
# done
|
||||||
echo "No matching version found, running the release"
|
# echo "No matching version found, running the release"
|
||||||
|
|
||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
if: steps.helm_version_checker.outcome == 'success'
|
if: steps.helm_version_checker.outcome == 'success'
|
||||||
|
|||||||
Reference in New Issue
Block a user