Skip to content

Commit

Permalink
Try again.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Jan 26, 2024
1 parent 64f553c commit f752dc4
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,27 @@ jobs:
- name: Test outputs
shell: bash
run: |
if [[ -z ${{ matrix.version }} ]]; then
if [[ -z "${{ matrix.version }}" ]]; then
echo "No version argument"
TOIT_URL="${{ steps.setup2.outputs.toit-url }}"
TOIT_DIR="${{ steps.setup2.outputs.toit-install-dir }}"
TOIT_SDK="${{ steps.setup2.outputs.toit-sdk-path }}"
TOIT_VERSION="${{ steps.setup2.outputs.toit-version }}"
if [[ ${{ steps.setup2.outputs.toit-version }} == "" ]]; then
echo "No version"
exit 1
fi
else
echo "With version argument"
TOIT_URL="${{ steps.setup1.outputs.toit-url }}"
TOIT_DIR="${{ steps.setup1.outputs.toit-install-dir }}"
TOIT_SDK="${{ steps.setup1.outputs.toit-sdk-path }}"
TOIT_VERSION="${{ steps.setup1.outputs.toit-version }}"
if [[ ${{ matrix.version }} != ${{ steps.setup1.outputs.toit-version }} ]]; then
echo "Version argument does not match output"
fi
if [[ "$TOIT_VERSION" == "" ]]; then
echo "No version"
exit 1
fi
if [[ "${{ matrix.version }}" != "latest" -a "${{ matrix.version }}" != "" ]]; then
if [[ "$TOIT_VERSION" != "${{ matrix.version }}" ]]; then
echo "Version does not match"
exit 1
fi
fi
Expand Down

0 comments on commit f752dc4

Please sign in to comment.