From 5f6ba8c3b081646530109418d77d9c94683651cc Mon Sep 17 00:00:00 2001 From: Jack Blake Date: Sat, 10 Feb 2024 21:13:21 -0600 Subject: [PATCH] fix run --- .github/workflows/run.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run.yaml b/.github/workflows/run.yaml index 384134e..05bc51c 100644 --- a/.github/workflows/run.yaml +++ b/.github/workflows/run.yaml @@ -13,13 +13,13 @@ jobs: - name: setup env file run: echo ${{ secrets.DOTENV}} > .env - name: start mc server container - run: (cd easy-mcs && docker-compose up -d) + run: docker-compose up -d - name: wait until server starts, SERVER IP HERE - run: timeout 5m grep -m 1 "SERVER URL" <(docker logs -f mc) + run: timeout 5m grep -m 1 "SERVER URL" <(docker logs -f mcs) - name: stop server after 3h if running on schedule if: ${{ github.event_name == 'schedule' }} - run: (sleep 10800 && (echo "/stop" | docker attach mc)) & + run: (sleep 10800 && (echo "/stop" | docker attach mcs)) & - name: wait for server to be stopped - run: docker wait mc + run: docker wait mcs - if: ${{ cancelled() }} - run: echo "/stop" | docker attach mc + run: echo "/stop" | docker attach mcs