Skip to content

Commit c8042ac

Browse files
committed
fix(codecov): flacky issue with pkgx setup
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent 15df291 commit c8042ac

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

actions/codecov/action.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,25 @@ runs:
4848
- name: Install missing Codecov dependencies
4949
if: steps.check-codecov-deps.outputs.missing-deps
5050
uses: pkgxdev/setup@f211ee4db3110b42e5a156282372527e7c1ed723 # v4.0.0
51-
with:
52-
+: ${{ steps.check-codecov-deps.outputs.missing-deps }}
51+
52+
- name: Install Codecov dependencies via pkgx
53+
if: steps.check-codecov-deps.outputs.missing-deps
54+
shell: bash
55+
env:
56+
MISSING_DEPS: ${{ steps.check-codecov-deps.outputs.missing-deps }}
57+
run: |
58+
set -euo pipefail
59+
60+
if [[ -z "${MISSING_DEPS}" ]]; then
61+
exit 0
62+
fi
63+
64+
args=()
65+
for dep in ${MISSING_DEPS}; do
66+
args+=("+${dep}")
67+
done
68+
69+
pkgx "${args[@]}"
5370
5471
- name: Fix unexpanded environment variables
5572
if: steps.check-codecov-deps.outputs.missing-deps

0 commit comments

Comments
 (0)