BitcoinCash Updater #328
This file contains hidden or 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: BitcoinCash Updater | |
| on: | |
| schedule: | |
| - cron: '35 1 * * *' | |
| 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: readme update | |
| run: | | |
| export COIN="BitcoinCash" | |
| export UPDATE_TIME="${{ env.UPDATE_TIME }}" | |
| export FILE_ALL_NAME="Latest_BitcoinCash_Addresses.tsv.gz" | |
| export FILE_ALL_SIZE="${{ env.Latest_BitcoinCash_Addresses_tsv_gz_size }}" | |
| export FILE_RICH_NAME="Latest_Rich_BitcoinCash_Addresses_txt_gz" | |
| export FILE_RICH_SIZE="${{ env.Latest_Rich_BitcoinCash_Addresses_txt_gz_size }}" | |
| envsubst < .github/README.alt.template.md > BITCOIN-CASH/README.md | |
| - name: Create GitHub Release | |
| id: create_release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: "BitcoinCash" | |
| name: "Latest Bitcoin Cash ${{ env.UPDATE_TIME }}" | |
| body: | | |
| ## New Release : Bitcoin Cash Address Wallet `${{ env.UPDATE_TIME }}` | |
| Latest All Bitcoin Cash 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 }}` | |
| ## Download `${{ env.UPDATE_TIME }}` | |
| - [Latest_BitcoinCash_Addresses.tsv.gz](https://github.com/Pymmdrza/Rich-Address-Wallet/releases/download/BitcoinCash/Latest_BitcoinCash_Addresses.tsv.gz) : `${{ env.Latest_BitcoinCash_Addresses_tsv_gz_size }}` | |
| - [Latest_Rich_BitcoinCash_Addresses.txt.gz](https://github.com/Pymmdrza/Rich-Address-Wallet/releases/download/BitcoinCash/Latest_Rich_BitcoinCash_Addresses.txt.gz) : `${{ env.Latest_Rich_BitcoinCash_Addresses_txt_gz_size }}` | |
| ### 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 }} | |
| - name: Update Repo | |
| run: | | |
| git config --global user.name 'github-actions' | |
| git config --global user.email '[email protected]' | |
| git add BITCOIN-CASH/README.md | |
| git commit -m 'BITCOIN CASH Updated : ${{ env.UPDATE_TIME }}' | |
| git push origin main |