Skip to content

Commit 7ca05c9

Browse files
Merge pull request #175 from jesperancinha/update-quick
Update quick
2 parents 155d6e3 + 74bc69e commit 7ca05c9

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SHELL := /bin/bash
2-
GRADLE_VERSION ?= 8.10
2+
GRADLE_VERSION ?= 8.10.1
33

44
b: build
55
build:

acceptPR.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ echo "More info one:"
44
echo "- https://github.com/orgs/community/discussions/25702"
55

66
echoPRDate() {
7-
echo "PR Accept on $(date)" >> pr.md
7+
echo "PR Accept on $(date)" > pr.md
88
}
99
git pull
1010
LANG=en_us_8859_1

depsAllQuickManualUpgrade.sh

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env bash
2+
3+
branch_name="update-quick"
4+
remote_name="origin"
5+
6+
cd ..
7+
for item in *; do
8+
if [[ -d "$item" ]]; then
9+
cd "${item}" || exit
10+
if [ -f Makefile ]; then
11+
item="this"
12+
if grep -q "^deps-quick-update:" Makefile; then
13+
echo "---*** Quick Update Makefile command found in $item ***---"
14+
git pull
15+
git fetch -p
16+
make deps-quick-update
17+
if ! git diff --quiet || ! git diff --cached --quiet; then
18+
if ! git ls-remote --exit-code --heads "$remote_name" "$branch_name"; then
19+
git checkout -b $branch_name
20+
git commit -am "quick updates"
21+
git push -u origin $branch_name
22+
if git show-ref --verify --quiet refs/heads/master; then
23+
git checkout master
24+
fi
25+
if git show-ref --verify --quiet refs/heads/main; then
26+
git checkout main
27+
fi
28+
fi
29+
fi
30+
fi
31+
fi
32+
33+
cd ..
34+
fi
35+
done
36+
cd project-signer || exit

0 commit comments

Comments
 (0)