mirror of
https://github.com/sys-32Dev/hoyolab-auto-daily.git
synced 2026-08-08 20:06:33 +00:00
update workflow with env
This commit is contained in:
21
.github/workflows/login.yml
vendored
21
.github/workflows/login.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user