diff --git a/.github/workflows/erc-registry-indexer.yml b/.github/workflows/erc-registry-indexer.yml index baee474d..193fa4d9 100644 --- a/.github/workflows/erc-registry-indexer.yml +++ b/.github/workflows/erc-registry-indexer.yml @@ -96,27 +96,27 @@ jobs: fi echo "INDEXING_DURATION=${FORMATTED_DURATION}" >> $GITHUB_ENV - - name: Count New Records - id: count_records - run: | - cd ${{ env.INDEXER_PATH }} - # Determine the new amount of ERC-20 records - if [ -f backup/erc-20.json ]; then - NEW_ERC20_RECORDS=$(jq -s '.[1] - .[0] | length' backup/erc-20.json erc-registry/${{ github.event.inputs.HEDERA_NETWORK }}/erc-20.json) - else - NEW_ERC20_RECORDS=$(jq '. | length' erc-registry/${{ github.event.inputs.HEDERA_NETWORK }}/erc-20.json) - fi - - # Determine the new amount of of ERC-721 records - if [ -f backup/erc-721.json ]; then - NEW_ERC721_RECORDS=$(jq -s '.[1] - .[0] | length' backup/erc-721.json erc-registry/${{ github.event.inputs.HEDERA_NETWORK }}/erc-721.json) - else - NEW_ERC721_RECORDS=$(jq '. | length' erc-registry/${{ github.event.inputs.HEDERA_NETWORK }}/erc-721.json) - fi - - # Export the results to GitHub environment variables - echo "NEW_ERC20_RECORDS=${NEW_ERC20_RECORDS}" >> $GITHUB_ENV - echo "NEW_ERC721_RECORDS=${NEW_ERC721_RECORDS}" >> $GITHUB_ENV + # - name: Count New Records + # id: count_records + # run: | + # cd ${{ env.INDEXER_PATH }} + # # Determine the new amount of ERC-20 records + # if [ -f backup/erc-20.json ]; then + # NEW_ERC20_RECORDS=$(jq -s '.[1] - .[0] | length' backup/erc-20.json erc-registry/${{ github.event.inputs.HEDERA_NETWORK }}/erc-20.json) + # else + # NEW_ERC20_RECORDS=$(jq '. | length' erc-registry/${{ github.event.inputs.HEDERA_NETWORK }}/erc-20.json) + # fi + + # # Determine the new amount of of ERC-721 records + # if [ -f backup/erc-721.json ]; then + # NEW_ERC721_RECORDS=$(jq -s '.[1] - .[0] | length' backup/erc-721.json erc-registry/${{ github.event.inputs.HEDERA_NETWORK }}/erc-721.json) + # else + # NEW_ERC721_RECORDS=$(jq '. | length' erc-registry/${{ github.event.inputs.HEDERA_NETWORK }}/erc-721.json) + # fi + + # # Export the results to GitHub environment variables + # echo "NEW_ERC20_RECORDS=${NEW_ERC20_RECORDS}" >> $GITHUB_ENV + # echo "NEW_ERC721_RECORDS=${NEW_ERC721_RECORDS}" >> $GITHUB_ENV - name: Delete backup registry folder run: |