Skip to content

Commit 41833f3

Browse files
committed
Provide default empty CLA file for read-file action
1 parent 82a3ae9 commit 41833f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

check-cla/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ runs:
5757
with:
5858
path: https://raw.githubusercontent.com/${{ inputs.cla_repo }}/main/${{ inputs.cla_path }}
5959
parse: json
60+
default: '[]'
6061

6162
- name: Determine whether the contributor has signed the CLA
62-
run: echo HAS_SIGNED=${{ contains(fromJSON(steps.read_cla.outputs.content)['contributors'], env.CONTRIBUTOR) }} >> $GITHUB_ENV
63+
run: echo HAS_SIGNED=${{ contains(fromJSON(steps.read_cla.outputs.content), env.CONTRIBUTOR) }} >> $GITHUB_ENV
6364
shell: bash
6465

6566
# if contributor has already signed, add [cla-signed] label

0 commit comments

Comments
 (0)