ci: fix setting YT_AUTHENTICATED variable

This commit is contained in:
ThetaDev 2024-11-25 16:56:55 +01:00
parent e6ec5ed255
commit 72d46ee45b
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6

View file

@ -30,11 +30,12 @@ jobs:
- name: 🧪 Test
run: |
printf "$RUSTYPIPE_CACHE" > rustypipe_cache.json
echo "authenticated=$YT_AUTHENTICATED"
cargo nextest run --config-file ~/.config/nextest.toml --profile ci --retries 2 --features rss --workspace
env:
ALL_PROXY: "http://warpproxy:8124"
RUSTYPIPE_CACHE: "${{ secrets.RUSTYPIPE_CACHE }}"
YT_AUTHENTICATED: "${{ github.event_name != 'pull_request' }}" # no access to secrets for PRs
YT_AUTHENTICATED: "${{ secrets.RUSTYPIPE_CACHE != '' }}"
- name: Move test report
if: always()