From bb0d1a682943ecedf0127db6632e039bd518987a Mon Sep 17 00:00:00 2001 From: Florin Covaciu Date: Fri, 28 Jul 2023 11:29:09 +0300 Subject: [PATCH] Automate the Wordpress versions updates -REF: IES-43 - fixed var SVN_REP_USER - added check if version $VERSION already published and bail out if so --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a5012ee..0386f38 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,6 +31,12 @@ jobs: echo "cd ${{ vars.SVN_REP_DIR }}" cd ${{ vars.SVN_REP_DIR }} + echo "check if version $VERSION already published and bail out if so" + if [[ -d "tags/$VERSION" ]]; then + echo "ℹ︎ Version $VERSION was already published"; + exit + fi + echo "svn delete trunk/*" svn delete trunk/*