Skip to content

Commit

Permalink
sanitize rust client ref
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanphan committed Jan 14, 2025
1 parent 9dfc1d3 commit 20edecd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test-rust-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,21 @@ jobs:
version: ${{ env.SOLANA_VERSION }}
cache: ${{ env.CACHE }}

- name: Sanitize Ref
id: sanitize
shell: bash
run: |
REF="${{ inputs.git_ref }}"
if [ -z "$REF" ]; then
REF="default"
fi
SANITIZED=${REF//\//-}
echo "sanitized=$SANITIZED" >> "$GITHUB_OUTPUT"
- name: Download program builds
uses: actions/download-artifact@v4
with:
name: program-builds-${{ inputs.git_ref }}
name: program-builds-${{ steps.sanitize.outputs.sanitized }}

- name: Run tests
shell: bash
Expand Down

0 comments on commit 20edecd

Please sign in to comment.