We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eaccd6 commit cd1d4a6Copy full SHA for cd1d4a6
1 file changed
.github/workflows/ci.yaml
@@ -53,10 +53,27 @@ jobs:
53
name: code-coverage-report
54
path: .coverage
55
56
+ check-secret:
57
+ runs-on: ubuntu-latest
58
+ outputs:
59
+ secrets-exist: ${{ steps.check-for-secrets.outputs.defined }}
60
+ steps:
61
+ - name: Check for Secret availability
62
+ id: check-for-secrets
63
+ # perform secret check & put boolean result as an output
64
+ shell: bash
65
+ run: |
66
+ if [ "${{ secrets.CC_TEST_REPORTER_ID }}" != '' ]; then
67
+ echo "defined=true" >> $GITHUB_OUTPUT;
68
+ else
69
+ echo "defined=false" >> $GITHUB_OUTPUT;
70
+ fi
71
+
72
coverage:
73
name: Publish coverage
- needs: build
74
+ needs: [build, check-secret]
75
runs-on: ubuntu-latest
76
+ if: needs.check-secret.outputs.secrets-exist == 'true'
77
78
steps:
79
- uses: actions/checkout@v3
0 commit comments