@@ -10,7 +10,7 @@ permissions:
10
10
11
11
jobs :
12
12
matches_label :
13
- if : ${{ contains(github.event.issue.labels.*.name, 'trigger-chromium-build') && contains(fromJSON('["MEMBER", "COLLABORATOR"]'), github.event.issue.author_association) }}
13
+ if : ${{ contains(github.event.issue.labels.*.name, 'trigger-chromium-build') && contains(fromJSON('["MEMBER", "COLLABORATOR", "CONTRIBUTOR" ]'), github.event.issue.author_association) }}
14
14
runs-on : ubuntu-latest
15
15
outputs :
16
16
version_bump_config : ${{ steps.extract_version_bump_config.outputs.result }}
61
61
local block_content=$3
62
62
if [[ $lang == "json" ]]; then
63
63
# Remove leading and trailing whitespace from the block content
64
- block_content=$(echo "$block_content" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' )
64
+ block_content=$(echo "$block_content" | jq -c . )
65
65
66
66
# Check for puppeteer_version property
67
67
if echo "$block_content" | jq -e 'has("puppeteer_version")' > /dev/null; then
81
81
mdsh-parse handle_code_block
82
82
# Output the upgrade config if found
83
83
if [[ -n "$UPGRADE_CONFIG" ]]; then
84
- echo "version_bump_config =$UPGRADE_CONFIG" >> $GITHUB_OUTPUT
84
+ echo "result =$UPGRADE_CONFIG" >> $GITHUB_OUTPUT
85
85
fi
86
86
}
87
87
@@ -126,4 +126,4 @@ jobs:
126
126
GITHUB_ISSUE_NUMBER=${{ github.event.issue.number }}
127
127
GITHUB_ISSUE_LABELS=${{ github.event.issue.labels }} | jq -r '. | map(.name) | join(",")'
128
128
GITHUB_ISSUE_TRIGGER_USER=${{ github.event.issue.user.login }}
129
- PUPPETEER_VERSION=$(echo ${{ needs.matches_label.outputs.version_bump_config }} | jq -r '.puppeteer_version')
129
+ PUPPETEER_VERSION=$(echo ${{ fromJSON( needs.matches_label.outputs.version_bump_config) }} | jq -r '.puppeteer_version')
0 commit comments