Skip to content

Commit

Permalink
Provide default empty CLA file for read-file action
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Sep 9, 2024
1 parent 82a3ae9 commit 41833f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion check-cla/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ runs:
with:
path: https://raw.githubusercontent.com/${{ inputs.cla_repo }}/main/${{ inputs.cla_path }}
parse: json
default: '[]'

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

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

0 comments on commit 41833f3

Please sign in to comment.