Skip to content

Commit

Permalink
Update build-and-test.yml
Browse files Browse the repository at this point in the history
Debug sed command
  • Loading branch information
michaeltryby authored Jul 24, 2024
1 parent 30a0fd9 commit 9131854
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,12 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Print USERNAME and ACCESS_TOKEN for debugging (will be removed)
run: |
echo "USERNAME: ${{ env.USERNAME }}"
echo "ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}"
shell: bash

- name: Replace requirements
run: sed -i~ "s/https:\/\/github\.com/https:\/\/${{ env.USERNAME }}:${{ secrets.ACCESS_TOKEN }}@github\.com/g" requirements-swmm.txt
env:
USERNAME: ${{ env.USERNAME }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: sed -i~ "s/https:\/\/github\.com/https:\/\/'$USERNAME':'$ACCESS_TOKEN'@github\.com/g" requirements-swmm.txt
shell: bash

- name: Install requirements
Expand Down

0 comments on commit 9131854

Please sign in to comment.