mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
ci/update: fix re-apply commit order
We need to reverse the `rev-list` output so that the commits are re-applied in the correct order; oldest first.
This commit is contained in:
parent
d709c12cdd
commit
61fdbe2647
1 changed files with 1 additions and 1 deletions
2
.github/workflows/update.yml
vendored
2
.github/workflows/update.yml
vendored
|
@ -142,7 +142,7 @@ jobs:
|
|||
remote="origin/$pr_branch"
|
||||
author_rxp='^github-actions\[bot\] <41898282+github-actions\[bot\]@users\.noreply\.github\.com>$'
|
||||
base=$(git rev-list --author="$author_rxp" --max-count=1 "$remote")
|
||||
commits=( $(git rev-list "$base..$remote") )
|
||||
commits=( $(git rev-list --reverse "$base..$remote") )
|
||||
if [[ -n "$commits" ]]; then
|
||||
echo "Applying ${#commits[@]} commits..."
|
||||
echo "count=${#commits[@]}" >> $GITHUB_OUTPUT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue