Skip to content

Commit

Permalink
Merge pull request #1232 from nullun/fix-version-reporting
Browse files Browse the repository at this point in the history
Fix Indexer version within GitHub Actions
  • Loading branch information
nullun authored Feb 1, 2024
2 parents dbe57ee + 10dc544 commit 89e69a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pr-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ jobs:
- name: Download binaries
if: (contains(inputs.go_algorand_version, '-stable')) && (!contains(inputs.indexer_version, '-'))
run: |
wget https://algorand-releases.s3.amazonaws.com/channel/stable/node_stable_linux-amd64_${{ env.GO_ALGORAND_VERSION }}.tar.gz
wget https://algorand-releases.s3.amazonaws.com/indexer/${{ inputs.indexer_version }}/algorand-indexer_linux_amd64_${{ inputs.indexer_version }}.tar.bz2
wget https://github.com/algorand/go-algorand/releases/download/v${{ env.GO_ALGORAND_VERSION }}-stable/node_stable_linux-amd64_${{ env.GO_ALGORAND_VERSION }}.tar.gz
wget https://github.com/algorand/indexer/releases/download/v${{ inputs.indexer_version }}/indexer_Linux_x86_64_${{ inputs.indexer_version }}.tar.gz
ls -la
- name: Install binaries
Expand All @@ -87,8 +87,11 @@ jobs:
cd node_stable_linux-amd64_${{ env.GO_ALGORAND_VERSION }}/bin/
cp goal algokey kmd diagcfg tealdbg ~/go/bin/
cd ../../
tar xjf algorand-indexer_linux_amd64_${{ inputs.indexer_version }}.tar.bz2
cp algorand-indexer_linux_amd64_${{ inputs.indexer_version }}/algorand-indexer ~/go/bin/
mkdir -p indexer_Linux_x86_64_${{ inputs.indexer_version }}
tar xzf indexer_Linux_x86_64_${{ inputs.indexer_version }}.tar.gz -C indexer_Linux_x86_64_${{ inputs.indexer_version }}
cd indexer_Linux_x86_64_${{ inputs.indexer_version }}
cp algorand-indexer ~/go/bin/
cd ../
ls -la
ls -la ~/go/bin
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
run: |
cd indexer
git fetch --tags
echo "::set-output name=indexer::$(git tag --list '[0-9]*.[0-9]*.[0-9]*' | grep -v '-' | sort -V | tail -1)"
git tag --list '[0-9]*.[0-9]*.[0-9]*' | grep -v '-' | sort -V | tail -1
echo "::set-output name=indexer::$(git tag --list | grep '[0-9]*\.[0-9]*\.[0-9]*' | grep -v '-' | sed 's/^v//' | sort -V | tail -1)"
git tag --list | grep '[0-9]*\.[0-9]*\.[0-9]*' | grep -v '-' | sed 's/^v//' | sort -V | tail -1
- name: Check versions # Just for easier troubleshooting
run: |
Expand Down

0 comments on commit 89e69a1

Please sign in to comment.