Skip to content

Commit efa1ea5

Browse files
committed
Fix warnings in build.
1 parent db9a5d8 commit efa1ea5

File tree

5 files changed

+19
-8
lines changed

5 files changed

+19
-8
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.rb merge=union

.github/scripts/build.sh

+10-2
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,27 @@ if [[ "$GITHUB_MESSAGE" = *--build-all* ]] || [ "$latest_version" != "$existing_
8484
git config --local user.email [email protected]
8585
git config --local user.name BrewTestBot
8686
for try in $(seq 10); do
87-
echo "try: $try" >/dev/null
87+
echo "try: $try"
88+
git rebase --abort || true
8889
git fetch origin master && git rebase origin/master
89-
if git push https://"$GITHUB_REPOSITORY_OWNER":"$GITHUB_TOKEN"@github.com/"$GITHUB_REPOSITORY".git HEAD:master --follow-tags; then
90+
if [ "$(git ls-files -u | wc -l)" -gt 0 ] ; then
91+
sed -i '' '/=====|>>>>>|<<<<</d' Formula/"$PHP_VERSION".rb
92+
git add Formula/"$PHP_VERSION".rb && git rebase --continue
93+
fi
94+
if git push https://"$GITHUB_REPOSITORY_OWNER":"$GITHUB_TOKEN"@github.com/"$GITHUB_REPOSITORY".git master; then
9095
break
9196
else
9297
sleep 3s
9398
fi
9499
done
95100
add_log "$tick" "Inventory" "updated"
101+
echo "::set-output name=build::true"
96102
else
103+
echo "::set-output name=build::false"
97104
add_log "$cross" "bottle" "broke"
98105
exit 1
99106
fi
100107
else
108+
echo "::set-output name=build::false"
101109
add_log "$tick" "PHP $new_version" "Bottle exists"
102110
fi

.github/workflows/update.yml

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@v2
3131
- name: build
32+
id: build
3233
run: sh ./.github/scripts/build.sh
3334
env:
3435
GITHUB_ACTIONS: true
@@ -48,6 +49,7 @@ jobs:
4849
DARWIN_VERSION: ${{ matrix.os-version }}
4950
continue-on-error: true
5051
- name: Upload Artifact
52+
if: steps.build.outputs.build == 'true'
5153
uses: actions/upload-artifact@v2
5254
with:
5355
name: ${{ matrix.php-version }}

Formula/[email protected]

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ class PhpAT80 < Formula
66

77
bottle do
88
root_url "https://dl.bintray.com/shivammathur/php"
9-
rebuild 347
10-
sha256 "6208785804c9d044f171bfe5a99f70a5f792aab452778607ad509157842fb563" => :big_sur
11-
sha256 "341edde90d0bf28177930556dc83406de93294477d221a5a33ef2945d9ed40ce" => :catalina
9+
rebuild 349
10+
sha256 "a64ac2b92db1a1c3d0565142426c9e11c2a5c50699a76d80ebfa9b74485fffaa" => :big_sur
11+
sha256 "02f7a6b22272c90096b269c447dd477ac7c36634d81e8a2af37653177335d5ec" => :catalina
1212
end
1313

1414
keg_only :versioned_formula

Formula/[email protected]

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ class PhpAT81 < Formula
66

77
bottle do
88
root_url "https://dl.bintray.com/shivammathur/php"
9-
rebuild 11
10-
sha256 "1936b417e34fdf5a3e9a4dc5d09942ab385072af5f7b03f58caf67b502833943" => :big_sur
11-
sha256 "cf3ae69bd933320693ea61121ca794715a82e5bdbb6858148c2c501261eef8fb" => :catalina
9+
rebuild 13
10+
sha256 "36c2e9e779e842d4be9359eff320db19dd1f21a03cfb366618cbc88f22b97f1d" => :big_sur
11+
sha256 "6e4401448dbb455fed3c4ef437046dbe4bfc62ba9ddb4b6fde8d25242af9340c" => :catalina
1212
end
1313

1414
keg_only :versioned_formula

0 commit comments

Comments
 (0)