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
21 changes: 12 additions & 9 deletions .github/workflows/pkg-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,22 @@ jobs:
git ls-tree -r --name-only "origin/$target" | grep -F Manifest.toml \
| xargs git add -f --
git add .
git commit -m "Merge branch '$base'" || exit 0
git commit -m "Merge branch '$base'" || true

# Since create-pull-request does not like when the current
# branch is the target branch, checkout master.
# https://github.com/JuliaFolds/Transducers.jl/pull/167
- name: "Checkout and merge to master"
run: |
if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]
# Since create-pull-request does not like when the current
# branch is the target branch, checkout master.
# https://github.com/JuliaFolds/Transducers.jl/pull/167
if [ "$(git rev-parse --abbrev-ref HEAD)" != "$base" ]
then
git checkout master
git merge --ff-only create-pull-request/pkg-update
git checkout "$base"
git merge --ff-only "$target"
fi

git ls-tree -r --name-only "origin/$base" | grep -F Manifest.toml \
| xargs git checkout "origin/$base" --
git ls-tree -r --name-only "origin/$base" | grep -F Manifest.toml \
| xargs git add -f --

# https://github.com/tkf/julia-update-manifests
- name: Update */Manifest.toml
uses: tkf/julia-update-manifests@v1
Expand Down