Skip to content

Commit

Permalink
update workflow with env
Browse files Browse the repository at this point in the history
  • Loading branch information
sglkc committed Oct 13, 2024
1 parent afc00ef commit e604abc
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/login.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit e604abc

Please sign in to comment.