Giter Club home page Giter Club logo

workflows-sample's Introduction

EpicGames Giveaways Auto Claimer

充分白嫖使用 每月免费2000分钟Github Actions (逃

  1. Get_Epic_Game.yml : 用于定时获取 Epic Game 发放的周免游戏。

配置方法

在 GitHub 的 'Settings' - 'Secrets' 添加 EMAIL (你的 Epic 邮箱),PASSWD (你的 Epic 密码),SECRET(二步验证 Secret)。

二步验证的 Secret 在 EpicGames 启用二步验证、扫描二维码的时候会显示。如果你已经启用了,那么关闭再启用即可看到。

并且,修改 .github/workflows/Get_Epic_Game.yml 文件,去掉开头的 # 号,如下:

on:
  schedule: # 删除本行开头的 # 号
    - cron: "25 2 * * *" # 删除本行开头的 # 号
  push:
    branches:
      - master

备注

  • 由于脚本不知道为何有概率失败,而且 Epic 有时候会中途添加游戏,因此触发时间我改成了每天一次。

  • 由于几次尝试发现如果只有 Schedule 的配置,似乎 GitHub 不会建立 (Actions 页面为空),也不会执行脚本。因此添加了 on-push 触发器,这样编辑一次文件之后可以正确的生成 GitHub Actions,触发器也可以正确触发。

  • GitHub Actions 的 Schedule 触发不精确,可能有约 5~10 分钟的延迟。

  • 重复的 Lego Batman Trilogy 领取提示,更新 Claimer 脚本后修复了。

workflows-sample's People

Contributors

at404bot avatar lingsamuel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

workflows-sample's Issues

GTA V领取提示错误

2020-05-15 | 03:20:00.167 | WARN | Failed to claim Grand Theft Auto V (Error: Unknown quick purchase status: false)

Actions那里全是绿钩无错误,不知道是不是epic网络的问题

Error: Failed to launch the browser process

配置完成后运行出现报错

Github Action 中的提示是

npm WARN deprecated [email protected]: request has been deprecated, see request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

> [email protected] install /home/runner/work/Workflows-Sample/Workflows-Sample/workdir/node_modules/puppeteer
> node install.js


Chromium downloaded to /home/runner/work/Workflows-Sample/Workflows-Sample/workdir/node_modules/puppeteer/.local-chromium/linux-722234
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of node-stringprep@^0.8.0 but none is installed. You must install peer dependencies yourself.

added 309 packages from 248 contributors and audited 309 packages in 12.927s

12 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Error: Process completed with exit code 1.

TGbot推送的信息是

ERROR | Error: Failed to launch the browser process!
2109:2109:1216/044213.038025:ERROR:browser\_main\_loop.cc(1512) Unable to open X display.


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/master/docs/troubleshooting.md

    at onClose (/home/runner/work/Workflows-Sample/Workflows-Sample/workdir/node_modules/puppeteer/lib/Launcher.js:750:14)
    at ChildProcess.<anonymous> (/home/runner/work/Workflows-Sample/Workflows-Sample/workdir/node_modules/puppeteer/lib/Launcher.js:740:61)
    at ChildProcess.emit (events.js:327:22)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.