From 0083e9ef68c0563ed28a4fb6526ff3fdf1f2a3f7 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Fri, 17 May 2024 11:18:37 +0000 Subject: [PATCH] dev: Don't run docker build on mrs as it will always fail dev: Fixed remove-migration.ps1 script --- .gitlab-ci.yml | 2 ++ remove-migration.ps1 | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a7dfc787..d15bb7028 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -123,6 +123,8 @@ publish-medusa-package: stage: publish-medusa-package allow_failure: true rules: + - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' + when: never - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG script: - LAST_TAG=$(git describe --tags --abbrev=0) diff --git a/remove-migration.ps1 b/remove-migration.ps1 index 877458391..a53a1c720 100644 --- a/remove-migration.ps1 +++ b/remove-migration.ps1 @@ -1,4 +1,4 @@ -dotnet ef migrations remove -c SqliteContext -f -dotnet ef migrations remove -c PostgreSqlContext -f -dotnet ef migrations remove -c MysqlContext -f +dotnet ef migrations remove -c SqliteContext -f -p src/NadekoBot/NadekoBot.csproj +dotnet ef migrations remove -c PostgreSqlContext -f -p src/NadekoBot/NadekoBot.csproj +dotnet ef migrations remove -c MysqlContext -f -p src/NadekoBot/NadekoBot.csproj