We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 657a821 commit a16d446Copy full SHA for a16d446
.github/workflows/ci.yaml
@@ -101,7 +101,7 @@ jobs:
101
shell: bash
102
run: |
103
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')"
+ 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')
105
echo "NEW_USER_ID=$NEW_USER_ID" >> "$GITHUB_ENV"
106
107
- name: Grant role to user
0 commit comments