Skip to content

Commit 407983a

Browse files
committed
dataconnect.yml: remove readonly modifier to fix error: pr_number: readonly variable
1 parent 76a92d0 commit 407983a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/dataconnect.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,20 +283,18 @@ jobs:
283283
# debugging/development purposes of the comment-posting logic itself.
284284
# For example, issue number 6863 was specifically created for testing.
285285
# (see https://github.com/firebase/firebase-android-sdk/issues/6863)
286-
readonly pr_number
287286
pr_number=$(echo '${{ github.ref }}' | sed -En 's#^refs/pull/([0-9]+)/merge$#\1#p')
288287
if [[ -n $pr_number ]] ; then
289-
readonly issue_from_pr_body
290288
issue_from_pr_body=$(gh issue view "$pr_number" --json body --jq '.body' | sed -En 's#(\s|^)trksmnkncd_notification_issue=([0-9]+)(\s|$)#\2#p')
291289
fi
292290
293291
if [[ -v $issue_from_pr_body ]] && [[ -n $issue_from_pr_body ]] ; then
294-
readonly issue="$issue_from_pr_body"
292+
issue="$issue_from_pr_body"
295293
elif [[ '${{ github.event_name }}' == 'schedule' ]] ; then
296294
# See https://github.com/firebase/firebase-android-sdk/issues/6857
297-
readonly issue=6857
295+
issue=6857
298296
else
299-
readonly issue=
297+
issue=
300298
fi
301299
302300
echo "issue=$issue" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)