Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] dev in tag fix (automatic) #100

Merged
merged 3 commits into from
Feb 11, 2025
Merged

[ci] dev in tag fix (automatic) #100

merged 3 commits into from
Feb 11, 2025

Conversation

astef
Copy link
Member

@astef astef commented Feb 6, 2025

Description

This is automated change made with this script:

#!/bin/bash

set -e

git clone git@github.com:deckhouse/sds-local-volume.git

# replace
# (eq "dev" .Values.global.deckhouseVersion)
# (or (hasPrefix "dev" .Values.global.deckhouseVersion) (hasSuffix "dev" .Values.global.deckhouseVersion))

find ./ -type f -name "*.yaml" -exec sed -i 's/(eq "dev" .Values.global.deckhouseVersion)/(or (hasPrefix "dev" .Values.global.deckhouseVersion) (hasSuffix "dev" .Values.global.deckhouseVersion))/g' {} +

BRANCH_NAME="astef-dev-in-tag-fix"  # Unique branch name with timestamp

for dir in */; do
    echo "Repository: $dir"
    cd "$dir"

    if [[ -n $(git status --porcelain) ]]; then
        git checkout -b "$BRANCH_NAME"
        git add .
        git commit -s -m "Automated commit. See script in PR"
        git push -u origin "$BRANCH_NAME"

        echo "Changes pushed to branch: $BRANCH_NAME"
    else
        echo "No changes detected"
    fi

    cd - > /dev/null
done

Why do we need it, and what problem does it solve?

What is the expected result?

See deckhouse/sds-replicated-volume#211

Checklist

  • [_] Changes were tested in the Kubernetes cluster manually.

Signed-off-by: Aleksandr Stefurishin <aleksandr.stefurishin@flant.com>
@astef astef marked this pull request as draft February 6, 2025 20:29
@astef astef requested review from AleksZimin, duckhawk and mrwesadex-flant and removed request for AleksZimin February 6, 2025 20:30
@astef astef added the enhancement New feature or request label Feb 6, 2025
@astef astef marked this pull request as ready for review February 7, 2025 09:06
Signed-off-by: Aleksandr Stefurishin <aleksandr.stefurishin@flant.com>
Signed-off-by: Aleksandr Stefurishin <aleksandr.stefurishin@flant.com>
@astef astef merged commit f47f502 into main Feb 11, 2025
6 of 8 checks passed
@astef astef deleted the astef-dev-in-tag-fix branch February 11, 2025 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants