BurgerClaimer #3250
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: BurgerClaimer | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0,6,12,18 * * *" | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 5.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Run Claimer | |
run: echo ${{ secrets.CONFIG_N3T5 }} | dotnet run --project BurgerClaimer | |
env: | |
WIF: ${{ secrets.TEEWIF }} | |
RPC: http://seed3t5.neo.org:20332 | |
THREASHOLD: 1000 | |
- name: action-keepalive-check | |
run: | | |
if (( $(git --no-pager log -1 --format=%ct) < $(date --date "last month" +%s) )); then | |
git config --global user.email [email protected] | |
git config --global user.name bot | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/neoburger/TEE-N3T5.git | |
git commit --allow-empty -m "Dummy commit created to keep the repository active..." | |
git push origin HEAD | |
fi |