Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,15 @@ jobs:
CONTRIBUTORS=""
if [ -n "$PR_NUMBERS" ]; then
# Build a single GraphQL query to fetch all PR authors.
QUERY='{ repository(owner: "${{ github.repository_owner }}", name: "${{ github.event.repository.name }}") {'
QUERY='query($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {'
while IFS= read -r PR; do
[ -n "$PR" ] && QUERY="$QUERY pr$PR: pullRequest(number: $PR) { author { login } }"
done <<< "$PR_NUMBERS"
QUERY="$QUERY } }"

CONTRIBUTORS=$(gh api graphql -f query="$QUERY" \
-F owner='{owner}' -F name='{repo}' \
--jq '[.data.repository[].author.login] | unique | map("@" + .) | join(", ")')
fi
echo "list=$CONTRIBUTORS" >> $GITHUB_OUTPUT
Expand All @@ -110,9 +112,10 @@ jobs:
MERGE_SHA: ${{ github.event.pull_request.merge_commit_sha }}
BODY: ${{ steps.changelog.outputs.body }}
CONTRIBUTORS: ${{ steps.contributors.outputs.list }}
PRERELEASE: ${{ steps.version.outputs.prerelease }}
run: |
PRERELEASE_FLAG=""
if [[ "${{ steps.version.outputs.prerelease }}" == "true" ]]; then
if [[ "$PRERELEASE" == "true" ]]; then
PRERELEASE_FLAG="--prerelease"
fi

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-wporg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
TAG: ${{ steps.resolve.outputs.tag }}
run: |
gh release download "$TAG" \
--repo "${{ github.repository }}" \
--repo "$GITHUB_REPOSITORY" \
--pattern "plugin-sqlite-database-integration.zip" \
--dir .
unzip plugin-sqlite-database-integration.zip
Expand Down
Loading