Skip to content

Collect HTV coins #4906

Collect HTV coins

Collect HTV coins #4906

Workflow file for this run

name: Collect HTV coins
on:
schedule:
- cron: "0 */3 * * *"
workflow_dispatch:
env:
HTV_EMAIL: "${{ secrets.HTV_EMAIL }}"
HTV_PASSWORD: "${{ secrets.HTV_PASSWORD }}"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- uses: styfle/[email protected]
name: "Cancelling duplicate workflow runs"
with:
all_but_latest: true
access_token: ${{ github.token }}
- name: Install Dependencies
run: |
sudo apt upgrade && sudo apt update
sudo apt install curl openssl jq
- name: Collect Coins
timeout-minutes: 1
run: |
chmod +x coins.sh
./coins.sh
- name: Commit session file
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "auto: update session" -a || true
- name: push session
uses: ad-m/github-push-action@master
with:
github_token: ${{ github.token }}
branch: ${{ github.ref }}