-
-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Github Actions setup option #27
Comments
I tried this by duplicating this repo to a private repo and it works flawlessly here is a screen shot (I already have GTA V): #29 can be a problem but I tried it 6 times and it worked everytime. If I leave the 2FA_SECRET blank, it fails, but if i set to Here is the workflow file if you want to try it out: name: Claim
on:
schedule:
- cron: '0 0 * * *' # Everyday
push:
jobs:
claim:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
- name: Install Dependencies
run: npm install
- name: Get them sweet freebies
run: npm run start |
I tried to do this without me cloning the whole repo and uploading it to a private repo by creating only one workflow file. It kept failing for some reason. Turns out, it was a problem with my password. If the password contains here is a screen shot (I already have GTA V): Here is the workflow file if you want to try it out: name: Claim games
on:
schedule:
- cron: '0 0 * * *' # Everyday
push:
jobs:
claim:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
repository: 'Revadike/epicgames-freebies-claimer'
- name: Setup Node.js
uses: actions/setup-node@v1
- name: install dependencies
run: npm install
- name: claim
run: npm run start ${{ secrets.USERNAME }} ${{ secrets.PASSWORD }} 0 Ceate corresponding secrets and let it run. If this works for everyone, that would be awesome. You won't need the |
I am using this in Github Actions several weeks. |
In my sample, I use my fork repo while the 2FA PR is not merged at that time. |
Well, I want my repo to be flexible, so it can be setup in whatever way people like it. Github Actions is one way to do it, but perhaps people have their own server, they want to deploy this on. Though, this method could definitely be mentioned in the readme. |
Instead of running this on your own computer, you can use GitHub actions to run it every day automatically. This will help if you don't always have access to your personal computer e.g. if you live in a hostel, where you can't just write your password in a file and assume nobody will see it.
You can create a repository with an action which runs this project. But you can't store plaintext credentials in a public repository. (you can do this with a private repository but you need to write a separate action to first edit the config.js). You can use secrets in github actions which nobody but only you can access.
Using github actions would also mean that you don't have to update it manually. It would clone the latest version and everything will be automatic.
The text was updated successfully, but these errors were encountered: