From 4632d78ce1680faa1b35c1eadac864535ae43d2e Mon Sep 17 00:00:00 2001 From: "Masih H. Derkani" Date: Tue, 20 Jul 2021 19:52:07 +0100 Subject: [PATCH] Remove `.gx` on initial deployment Update the copy workflow to remove `.gx` if it is present now that GX has become redundant in favour of `go.mod`. Relates to: - https://github.com/whyrusleeping/gx --- .github/workflows/copy-workflow.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/copy-workflow.yml b/.github/workflows/copy-workflow.yml index a27d58f1..cda41fc5 100644 --- a/.github/workflows/copy-workflow.yml +++ b/.github/workflows/copy-workflow.yml @@ -72,6 +72,14 @@ jobs: git rm -r .circleci git commit -m "disable CircleCI" fi + - name: remove GX on initial deployment + if: ${{ env.INITIAL_TEST_DEPLOYMENT == 1 }} + run: | + cd $TARGET_REPO_DIR + if [[ -d .gx ]]; then + git rm -r .gx + git commit -m "disable GX" + fi - name: run go mod tidy run: | cd $TARGET_REPO_DIR