Skip to content

Commit a16d446

Browse files
committed
Fix fetching user id
1 parent 657a821 commit a16d446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
shell: bash
102102
run: |
103103
set -eub pipefail
104-
NEW_USER_ID="$(baton resources -o json | jq -e --arg login "${{ env.CONNECTOR_NEW_USER }}" 'any(.resources[].resource.annotations[]?; .["@type"]=="type.googleapis.com/c1.connector.v2.UserTrait" and .login==$login) | .id.resource')"
104+
NEW_USER_ID=$(baton resources -t role -o json | jq -r --arg login "${{ env.CONNECTOR_NEW_USER }}" '.resources[].resource | select(any(.annotations[]?; .["@type"]=="type.googleapis.com/c1.connector.v2.UserTrait" and .login==$login)) | .id.resource')
105105
echo "NEW_USER_ID=$NEW_USER_ID" >> "$GITHUB_ENV"
106106
107107
- name: Grant role to user

0 commit comments

Comments
 (0)