Skip to content
Merged
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
10 changes: 8 additions & 2 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

TEAM_MEMBERS=$(curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.CR_PAT }}" \
-H "Authorization: Bearer ${{ secrets.CR_PAT_RWD }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/orgs/openKcloud/teams/${TEAM_NAME}/members | jq -r '.[] | .login' | tr '\n' ',')
echo "TEAM_MEMBERS=$TEAM_MEMBERS" >> $GITHUB_ENV
Expand Down Expand Up @@ -56,8 +56,14 @@ jobs:
with:
args: "--trace"
env:
GITHUB_TOKEN: "${{ secrets.CR_PAT }}"
GITHUB_TOKEN: "${{ secrets.CR_PAT_RWD }}"
MERGE_LABELS: "approved,!wip,!hold"
# Without this the action exits 0 even when the merge was rejected,
# so the job shows green while the PR stays open and nothing says
# why. Surfacing it matters here because CR_PAT_RWD cannot merge a PR
# that touches .github/workflows/ unless it carries the 'workflow'
# scope, and that failure is otherwise only visible in the log.
MERGE_ERROR_FAIL: "true"
MERGE_REMOVE_LABELS: ""
MERGE_METHOD: "merge"
MERGE_COMMIT_MESSAGE: "pull-request-title"
Expand Down
Loading