Comments (9)
Run with Workflow
- 在你的仓库设置中为 workflow 添加读和写权限
- 在仓库
secrets/actions
部分添加 secrets,EPIC_EMAIL
以及EPIC_PASSWORD
- 新建 workflow.yaml ,拉取认准厂牌
:fish
拉取测试版镜像,帮助测试
name: Claim epic-games
on:
workflow_dispatch:
# push:
# branches: [ "main" ]
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Execute Container
run: |
ls
docker run --rm \
-e EPIC_EMAIL=${{ secrets.EPIC_EMAIL }} \
-e EPIC_PASSWORD=${{ secrets.EPIC_PASSWORD }} \
-v ${{ github.workspace }}/user_data_dir/:/home/epic/user_data_dir/ \
-v ${{ github.workspace }}/logs/:/home/epic/logs/ \
ech0sec/awesome-epic:fish python3 claim.py
- name: Setup GIT user
uses: fregante/setup-git-user@v1
- name: Cache browser context
run: |
git add .
git commit -m "Automated deployment @ $(date '+%Y-%m-%d %H:%M:%S') Asia/Shanghai"
git push -f
from epic-awesome-gamer.
来自 Playwright 业内录制。
处理隐藏在订单中的人机挑战 shape_type = "point"
34590867-f61c-47f9-8acc-fb259fa2cab1.webm
from epic-awesome-gamer.
现在验证码真是层出不穷,肯定困难重重, 加油! 等待真正实现全自动 😄
from epic-awesome-gamer.
我还没来得及合并这部分特性,我本地已经做好了,正在优化流程
from epic-awesome-gamer.
我还没来得及合并这部分特性,我本地已经做好了,正在优化流程
👌🏻 好滴
from epic-awesome-gamer.
@cyz0105
name: Claim EpicGames from SourceGit
on:
workflow_dispatch:
# schedule:
# - cron: "10 23 * * 4,5" # 主分支内容还在快速迭代
jobs:
setup:
env:
EPIC_EMAIL: ${{ secrets.EPIC_EMAIL }}
EPIC_PASSWORD: ${{ secrets.EPIC_PASSWORD }}
FAKE_HASH: "Automated deployment @ $(date '+%Y-%m-%d %H:%M:%S') Asia/Shanghai"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 初始化环境 & 拉取项目
run: |
sudo timedatectl set-timezone "Asia/Shanghai"
git clone https://github.com/QIN2DIM/epic-awesome-gamer.git epic
cp epic/requirements.txt .
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip' # caching pip dependencies
- name: 安装依赖
run: |
pip install -r epic/requirements.txt
playwright install firefox
playwright install-deps firefox
- name: 启动项目
run: |
if [ -d "user_data_dir" ];then cp -rfp user_data_dir epic/; fi
echo "{}" > epic/src/config.json
cd epic/src/ && python3 claim.py
- name: Setup GIT user
uses: fregante/setup-git-user@v1
- name: 缓存身份令牌
run: |
if [ -d "epic/user_data_dir" ];then cp -rfp epic/user_data_dir . ; fi
if [ -d "epic/logs" ];then cp -rfp epic/logs . ; fi
echo "${{ env.FAKE_HASH }}" > _token
rm -rf epic
git add .
git commit -m "${{ env.FAKE_HASH }}"
git push -f
from epic-awesome-gamer.
@cyz0105
name: Claim EpicGames from SourceGit on: workflow_dispatch: # schedule: # - cron: "10 23 * * 4,5" # 主分支内容还在快速迭代 jobs: setup: env: EPIC_EMAIL: ${{ secrets.EPIC_EMAIL }} EPIC_PASSWORD: ${{ secrets.EPIC_PASSWORD }} FAKE_HASH: "Automated deployment @ $(date '+%Y-%m-%d %H:%M:%S') Asia/Shanghai" runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: 初始化环境 & 拉取项目 run: | sudo timedatectl set-timezone "Asia/Shanghai" git clone https://github.com/QIN2DIM/epic-awesome-gamer.git epic cp epic/requirements.txt . - uses: actions/setup-python@v4 with: python-version: "3.10" cache: 'pip' # caching pip dependencies - name: 安装依赖 run: | pip install -r epic/requirements.txt playwright install firefox playwright install-deps firefox - name: 启动项目 run: | if [ -d "user_data_dir" ];then cp -rfp user_data_dir epic/; fi echo "{}" > epic/src/config.json cd epic/src/ && python3 claim.py - name: Setup GIT user uses: fregante/setup-git-user@v1 - name: 缓存身份令牌 run: | if [ -d "epic/user_data_dir" ];then cp -rfp epic/user_data_dir . ; fi if [ -d "epic/logs" ];then cp -rfp epic/logs . ; fi echo "${{ env.FAKE_HASH }}" > _token rm -rf epic git add . git commit -m "${{ env.FAKE_HASH }}" git push -f
可以运行了, 不过我已经领了免费游戏, 所以看不到领取效果
2023-09-01 14:39:27 | SUCCESS - Pass claim task- {'reason': 'All free games of the week are in my library'}
from epic-awesome-gamer.
@cyz0105 我已经重新部署了项目文档,不过是用 Notion 写的 :>
from epic-awesome-gamer.
@cyz0105 我已经重新部署了项目文档,不过是用 Notion 写的 :>
感谢回复! 现在 actions 是否还会因为Github actions的ip污染而无法通过结算页的人机挑战 ? 如果发生不能正常挑战的情况, 本地部署能否解决? 谢谢
from epic-awesome-gamer.
Related Issues (20)
- 报错。运行成功率有点低? HOT 13
- 通过github action执行报错Locator expected to have text 'View In Cart'
- 超时无法执行 HOT 1
- perf(epic-games): Compatible with new EPIC Store UI
- 运行没报错,但是也没领到游戏
- 使用Actions运行偶尔会卡死把时间全用光 HOT 2
- [BUG] 购物车中有其他非免费游戏的情况下无法下订单 HOT 1
- 启动项目时报错 HOT 2
- github actions运行启动项目一直返回'stage': 'email_exists_prod',也没办法领取游戏,变量设置是正确的。 HOT 2
- 使用github actions启动,一直执行超时 - {'task': 'authorize', 'retry': 1} HOT 2
- 用github启动时 HOT 1
- 执行超时 HOT 13
- github_action部署运行报错 HOT 2
- docker模式运行错误
- hcaptcha-challenger验证问题
- APPRISE_TELEGRAM 格式问题 HOT 1
- 没有领取成功 HOT 2
- Captcha Issue HOT 1
- 无法通过人机验证 HOT 2
- 运行时错误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epic-awesome-gamer.