Skip to content

Commit

Permalink
Edit selector for chainspec pull
Browse files Browse the repository at this point in the history
  • Loading branch information
semeniak97mf committed Jul 26, 2024
1 parent 1a40ea0 commit 4d6c5a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Authenticate GitHub CLI and download latest release of chainspec
run: |
gh auth login --with-token <<< "${{ secrets.ACCESS_TOKEN }}"
LATEST_RELEASE=$(gh release list --repo ${{ secrets.ATLETA_REPO }} --json tagName,createdAt --jq '.[] | select(.tagName | startswith("devnet")) | .tagName' | sort -r | head -n 1)
LATEST_RELEASE=$(gh release list --repo ${{ secrets.ATLETA_REPO }} --json tagName,createdAt --jq '.[] | select(.tagName | startswith("devnet-chainspec")) | .tagName' | sort -r | head -n 1)
echo "${LATEST_RELEASE}"
gh release download "${LATEST_RELEASE}" --repo ${{ secrets.ATLETA_REPO }} --pattern "chain-spec.devnet.json" --dir chainspecs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Authenticate GitHub CLI and download latest release of chainspec
run: |
gh auth login --with-token <<< "${{ secrets.ACCESS_TOKEN }}"
LATEST_RELEASE=$(gh release list --repo ${{ secrets.ATLETA_REPO }} --json tagName,createdAt --jq '.[] | select(.tagName | startswith("testnet")) | .tagName' | sort -r | head -n 1)
LATEST_RELEASE=$(gh release list --repo ${{ secrets.ATLETA_REPO }} --json tagName,createdAt --jq '.[] | select(.tagName | startswith("testnet-chainspec")) | .tagName' | sort -r | head -n 1)
echo "${LATEST_RELEASE}"
gh release download "${LATEST_RELEASE}" --repo ${{ secrets.ATLETA_REPO }} --pattern "chain-spec.testnet.json" --dir chainspecs
Expand Down

0 comments on commit 4d6c5a2

Please sign in to comment.