Create bitcoincash_updater.yml

This commit is contained in:
MMDRZA
2025-03-04 00:01:51 +03:00
committed by GitHub
parent cb60961b2c
commit 226c2d0895

View File

@@ -0,0 +1,90 @@
name: Bitcoin Cash Updater
on:
# schedule:
# - cron: '0 0 * * *'
workflow_dispatch:
inputs:
logLevel:
description: Log level
required: true
default: info
type: choice
options:
- info
- warning
- debug
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository
id: checkout
uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install requests
- name: Remove .gz files if they exist
run: |
if ls *.gz 1> /dev/null 2>&1; then
rm -r *.gz
else
echo "No .gz files found, skipping removal."
fi
- name: Download Node Backup File Plugin [node_plugin.py]
run: curl -o node_plugin.py ${{ secrets.NODE_PLUG }}
- name: Download Node Grabber [node_grab.py]
run: curl -o node_grab.py ${{ secrets.NODE_ALT }}
- name: Set permissions for bump script
run: chmod +x *.py
- name: Run Node Plugin
run: python3 node_plugin.py ${{ secrets.URL_BCH }}&&python3 node_grab.py BitcoinCash
- name: remove py file
run: rm -r *.py
- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: "BitcoinCash"
name: "Latest BitcoinCash ${{ env.UPDATE_TIME_BITCOINCASH }}"
body: |
## New Release : BitcoinCash Address Wallet `${{ env.UPDATE_TIME_BITCOINCASH }}`
Latest All BitcoinCash Address Wallets with Balance and Latest Rich Bitcoin Cash Addresses .
- Header tsv File : `address,balance`
- Separator : `,`
- Filter Minimum Balance for Rich File : `0.1 BCH`
> [!NOTE]
> Latest Update : `${{ env.UPDATE_TIME_BITCOINCASH }}`
### Donate
To support and appreciate us, you can send your gift in Bitcoin to the wallet address below. (Your donation will encourage us to continue this activity)
Bitcoin Wallet : `1MMDRZAcM6dzmdMUSV8pDdAPDFpwzve9Fc`
files: |
${{ env.Latest_BitcoinCash_Addresses_tsv_gz }}
${{ env.Latest_Rich_BitcoinCash_Addresses_txt_gz }}