Skip to content

Commit

Permalink
Always configure ~/.tcms.conf, even if password is empty
Browse files Browse the repository at this point in the history
otherwise it will crash if the file doesn't exist
  • Loading branch information
atodorov committed Jul 14, 2023
1 parent cee662f commit f6e2684
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,11 @@ jobs:
java-version: ${{ matrix.java-version }}

- name: Prepare ~/.tcms.conf for ${{ matrix.kiwitcms-url }}
if: env.TCMS_PASSWORD
run: |
echo "[tcms]" > ~/.tcms.conf
echo "url = https://${{ matrix.kiwitcms-url }}/xml-rpc/" >> ~/.tcms.conf
echo "username = kiwitcms-bot" >> ~/.tcms.conf
echo "password = ${{ secrets.TCMS_PASSWORD }}" >> ~/.tcms.conf
env:
TCMS_PASSWORD: ${{ secrets.TCMS_PASSWORD }}
- name: Disable submission to ${{ matrix.kiwitcms-url }} if no permissions
if: ${{ env.TCMS_PASSWORD == '' }}
Expand Down

0 comments on commit f6e2684

Please sign in to comment.