forked from MoneyLust/claim-epic-freebies
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (25 loc) · 987 Bytes
/
claim.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Claim Free Games
on: # When to run this workflow
push: # When you edit this repo
# Uncomment the below lines to enable manual trigger..
watch:
types: [started] # When repo owner stars this repo
schedule:
- cron: "0 0 * * *" # Everyday at 00:00 UTC
jobs:
claim:
runs-on: ubuntu-latest
timeout-minutes: 5 # Automatically stop after 5 minutes
steps:
- name: Setup repo
uses: actions/checkout@v2
with:
repository: "Revadike/epicgames-freebies-claimer"
- name: Setup Node.js
uses: actions/setup-node@v1
- name: Install dependencies
run: yarn
- name: Hotfix for \#4 # https://github.com/xuac/claim-epic-freebies/issues/4
run: mkdir .egstore
- name: Get Epic Freebies
run: yarn start ${{ secrets.USERNAME }} ${{ secrets.PASSWORD }} 0 ${{ secrets.SECRETKEY }}