Skip to content

Commit

Permalink
fix: force grep return 0 to avoid pipefail
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijie-yang committed Aug 8, 2024
1 parent 78e4c00 commit 02fc133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/validate-access/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:
echo "admin-only: ${{ inputs.admin-only }}"
if [[ ${{ inputs.admin-only }} == true ]]; then
echo "Expanding team mentions in the CODEOWNERS file"
teams=$(grep -oE '@[[:alnum:]_.-]+\/[[:alnum:]_.-]+' ${{ github.workspace }}/CODEOWNERS | sort | uniq)
teams=$(grep -oE '@[[:alnum:]_.-]+\/[[:alnum:]_.-]+' ${{ github.workspace }}/CODEOWNERS || true | sort | uniq)
for team in $teams; do
org=$(echo $team | cut -d'/' -f1 | sed 's/@//')
Expand Down

0 comments on commit 02fc133

Please sign in to comment.