Skip to content

Commit

Permalink
fix run
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBlake-zkq committed Feb 11, 2024
1 parent 15716cd commit 5f6ba8c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5f6ba8c

Please sign in to comment.