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

Specify major ndc-postgres version to cargo update #588

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/update-multitenant-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,20 @@ jobs:
# there will be multiple `ndc-postgres` deps, so we target a specific
# one, presumably the latest version. This will need updating as we
# add new `ndc-postgres` versions into `ndc-postgres-multitenant`
LATEST_NDC_POSTGRES_VERSION="v1"
LATEST_NDC_POSTGRES_VERSION="1"

# Update the hash for ndc-postgres
sed -i -e "/ndc-postgres_${LATEST_NDC_POSTGRES_VERSION}/s/rev[ ]*=[ ]*\"[[:alnum:]]*\"/rev = \"$LATEST_SHA\"/g" $DEP_FILEPATH
sed -i -e "/ndc-postgres_v${LATEST_NDC_POSTGRES_VERSION}/s/rev[ ]*=[ ]*\"[[:alnum:]]*\"/rev = \"$LATEST_SHA\"/g" $DEP_FILEPATH

# Update the hash for ndc-postgres-configuration
sed -i -e "/ndc-postgres-configuration_${LATEST_NDC_POSTGRES_VERSION}/s/rev[ ]*=[ ]*\"[[:alnum:]]*\"/rev = \"$LATEST_SHA\"/g" $DEP_FILEPATH
sed -i -e "/ndc-postgres-configuration_v${LATEST_NDC_POSTGRES_VERSION}/s/rev[ ]*=[ ]*\"[[:alnum:]]*\"/rev = \"$LATEST_SHA\"/g" $DEP_FILEPATH

# ssh git access required for cargo update
eval "$(ssh-agent -s)"
ssh-add - <<< '${{ secrets.SSH_GIT_ACCESS_PRIVATE }}'

# Update Cargo lock file, but as little as possible
cargo update -p ndc-postgres
cargo update -p ndc-postgres@${LATEST_NDC_POSTGRES_VERSION}

# Commit the changes and push the feature branch to origin
git add .
Expand Down