Skip to content

Commit b0e8893

Browse files
committed
fix: check against env in if
1 parent d3bc853 commit b0e8893

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/update-dependencies.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ jobs:
2626
name: Configure matrix
2727
runs-on: ubuntu-latest
2828
outputs:
29-
group_name: ${{ steps.groups.outputs.group_name }}
29+
group_name: ${{ steps.define_groups.outputs.group_name }}
3030
steps:
31-
- id: groups
31+
- id: define_groups
3232
name: Define groups to update
33+
env:
34+
SHOULD_INCLUDE_ALL_GROUPS: ${{ inputs.group_name == '' || inputs.group_name == 'all' }}
3335
run: |
3436
echo "Configuring matrix (inputs.group_name=${{ inputs.group_name }})"
35-
if [[ ${{ inputs.group_name == '' || inputs.group_name == 'all' }} ]]; then
37+
if [[ "$SHOULD_INCLUDE_ALL_GROUPS" = "true" ]]; then
3638
# When adding new group, don't forget to update the `workflow_dispatch`
3739
echo 'group_name=["electron","eslint","typescript","mongosh"]' >> "$GITHUB_OUTPUT"
3840
else

0 commit comments

Comments
 (0)