add the --force (-f) flag to rm in order to not set the exit code to 1 if the file does not exists (and fail the build)
@@ -47,8 +47,8 @@ jobs:
- name: test success
if: success() && github.event_name == 'push'
run: |
- rm .github/packages-info/fail-${{ matrix.python-version }}-*
- rm .github/packages-info/success-${{ matrix.python-version }}-*
+ rm -f .github/packages-info/fail-${{ matrix.python-version }}-*
+ rm -f .github/packages-info/success-${{ matrix.python-version }}-*
conda list > $".github/packages-info/success-"${{ matrix.python-version }}"-"$GITHUB_SHA".txt"
- name: test failure
if: failure() && github.event_name == 'push'
