From e604abc0650bed23cdb085c3429a0c9b068adc4b Mon Sep 17 00:00:00 2001 From: Seya <31957516+sglkc@users.noreply.github.com> Date: Sun, 13 Oct 2024 07:44:32 +0700 Subject: [PATCH] update workflow with env --- .github/workflows/login.yml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.github/workflows/login.yml b/.github/workflows/login.yml index 4779362..010a4fb 100644 --- a/.github/workflows/login.yml +++ b/.github/workflows/login.yml @@ -7,23 +7,7 @@ on: jobs: check-in: - if: matrix.config.cookie && matrix.config.games runs-on: ubuntu-latest - strategy: - matrix: - config: - - cookie: ${{ secrets.COOKIE }} - games: ${{ vars.GAMES }} - - cookie: ${{ secrets.COOKIE1 }} - games: ${{ vars.GAMES1 }} - - cookie: ${{ secrets.COOKIE2 }} - games: ${{ vars.GAMES2 }} - - cookie: ${{ secrets.COOKIE3 }} - games: ${{ vars.GAMES3 }} - - cookie: ${{ secrets.COOKIE4 }} - games: ${{ vars.GAMES4 }} - - cookie: ${{ secrets.COOKIE5 }} - games: ${{ vars.GAMES5 }} steps: - name: Clone Repo uses: actions/checkout@v4 @@ -34,9 +18,10 @@ jobs: node-version: "20" - name: Check In - run: node index.js ${{ matrix.config.games }} + run: node index.js env: - COOKIE: ${{ matrix.config.cookie }} + COOKIE: ${{ secrets.COOKIE }} + GAMES: ${{ vars.GAMES }} DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} DISCORD_USER: ${{ secrets.DISCORD_USER }} workflow-keepalive: