Skip to content

Commit

Permalink
[skip ci] fix canary
Browse files Browse the repository at this point in the history
  • Loading branch information
qhy040404 committed Nov 29, 2024
1 parent e25e66a commit 4c2163b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ jobs:
- name: Merge all branches into develop locally
run: |
git fetch origin '+refs/heads/*:refs/remotes/origin/*'
curl -s https://api.github.com/repos/DGP-Studio/Snap.Hutao/pulls?state=open | jq -r '.[] | select(.draft == false) | .head.ref' | xargs -I {} git merge origin/{}
$response = curl -s https://api.github.com/repos/DGP-Studio/Snap.Hutao/pulls?state=open
$refs = $response | ConvertFrom-Json | Where-Object { $_.draft -eq $false } | ForEach-Object { $_.head.ref }
foreach ($ref in $refs) {
git merge "origin/$ref" --allow-unrelated-histories -m "Merge $ref into develop"
}
- name: Setup .NET
uses: actions/setup-dotnet@v4
Expand Down

0 comments on commit 4c2163b

Please sign in to comment.