diff --git a/.github/workflows/test_dep_update.sh b/.github/workflows/test_dep_update.sh index 489b9c2..8cf3471 100755 --- a/.github/workflows/test_dep_update.sh +++ b/.github/workflows/test_dep_update.sh @@ -5,8 +5,9 @@ echo "$GITHUB_API_TOKEN" | gh auth login --with-token git branch -D depupdate || true git branch depupdate git checkout depupdate +git reset --hard origin/master json="$(gh pr list --search "author:app/github-actions" --json headRefName,number)" -echo "$json" | jq '.[] | .headRefName | @text' | xargs -L1 -- git pull --rebase origin +echo "$json" | jq '.[] | .headRefName | @text' | xargs -L1 -- git pull origin if nix flake check; then echo "$json" | jq ".[] | .number | @text" | xargs -L1 -- gh pr merge --squash --delete-branch else