Skip to content

Commit

Permalink
escape *
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgen-lentz committed Oct 17, 2024
1 parent f2e5234 commit 7f9a59d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ jobs:
CIBW_TEST_COMMAND: ${{ env.CIBW_TEST_COMMAND }}
CIBW_TEST_REQUIRES: --index-url https://pypi.ampl.com --extra-index-url https://pypi.org/simple ampl_module_base

- name: Escape build variable
run: |
# Replace '*' with '' and store it in an environment variable
ESCAPED_BUILD=$(echo "${{ matrix.build }}" | sed 's/\*//g')
echo "ESCAPED_BUILD=$ESCAPED_BUILD" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.arch }}-${{ matrix.build//\*/\\* }}
name: artifact-${{ matrix.arch }}-${{ env.ESCAPED_BUILD }}
path: ./wheelhouse/*.whl

0 comments on commit 7f9a59d

Please sign in to comment.