fix: move cd - command after git operations in patch workflow
Move the directory restoration command after the git operations to ensure all git commands execute in the correct working directory before returning to the previous directory. Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
e380cc09d6
commit
8d6b57b5f9
1 changed files with 2 additions and 1 deletions
3
.github/workflows/patch-build.yaml
vendored
3
.github/workflows/patch-build.yaml
vendored
|
|
@ -157,12 +157,13 @@ jobs:
|
|||
local version=$2
|
||||
local chart_path="$WORKING_DIR/scripts/helmcharts/openreplay/charts/$service/Chart.yaml"
|
||||
|
||||
# Ensure we're in the original working directory/repository
|
||||
cd "$WORKING_DIR"
|
||||
yq eval ".AppVersion = \"$version\"" -i "$chart_path"
|
||||
cd -
|
||||
git add "$chart_path"
|
||||
git commit -m "Increment $service chart version to $version"
|
||||
git push --set-upstream origin "$BRANCH_NAME"
|
||||
cd -
|
||||
}
|
||||
|
||||
# Main execution
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue