From cba505c6cdbb8ede364fd4b99dde6bd1d12cf68d Mon Sep 17 00:00:00 2001 From: ytai <653297351@qq.com> Date: Sun, 13 Oct 2024 19:25:05 +0800 Subject: [PATCH] Update zodgame.yml --- .github/workflows/zodgame.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/zodgame.yml b/.github/workflows/zodgame.yml index c9466aa..c45236b 100644 --- a/.github/workflows/zodgame.yml +++ b/.github/workflows/zodgame.yml @@ -15,17 +15,10 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v3 - - name: Create a new user - run: | - net user nonAdminUser password /add - net localgroup "Users" nonAdminUser /add - shell: cmd - name: Install requirements run: | - runas /user:nonAdminUser "pip3 install -r ./zodgame/requirements.txt" - shell: cmd - - name: Run + pip3 install -r ./zodgame/requirements.txt + - name: Run run: | - runas /user:nonAdminUser "python3 ./zodgame/zodgame.py ${{secrets.ZODGAME_COOKIE}}" - shell: cmd + python3 ./zodgame/zodgame.py "${{secrets.ZODGAME_COOKIE}}" - uses: gautamkrishnar/keepalive-workflow@master