chore: update shapeshift feature erc20 import #57
Workflow file for this run
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: Check Wallet Data for new_to_crypto | |
on: | |
pull_request: | |
paths: | |
- "src/data/wallets/wallet-data.ts" | |
jobs: | |
check_new_to_crypto: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Check for new_to_crypto | |
id: check_new_to_crypto | |
run: | | |
if git diff --name-only HEAD^ | grep -q "data/wallets/wallet-data.ts"; then | |
if git diff -U0 HEAD^ HEAD data/wallets/wallet-data.ts | grep -q "+.*new_to_crypto: true"; then | |
echo "New wallet added with 'new_to_crypto: true'" | |
echo "new_to_crypto_found=true" >> $GITHUB_OUTPUT | |
else | |
echo "new_to_crypto_found=false" >> $GITHUB_OUTPUT | |
fi | |
fi | |
- name: Comment on PR if new_to_crypto is added | |
if: steps.check_new_to_crypto.outputs.new_to_crypto_found == 'true' | |
uses: actions-ecosystem/action-add-comment@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
body: "A wallet has been added with 'new_to_crypto: true'. Please ensure this meets our guidelines." |