We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c8d7af commit b3906e0Copy full SHA for b3906e0
ci/scripts/create-pull-request.sh
@@ -1,9 +1,7 @@
1
#!/bin/bash
2
set -e
3
4
-commit_message=$( cat commit-details/message )
5
-
6
-if [[ ${commit_message} != "" ]]; then
+if [[ -f commit-details/message ]]; then
7
curl \
8
-s \
9
-u ${GITHUB_USERNAME}:${GITHUB_PASSWORD} \
ci/scripts/detect-docker-updates.sh
@@ -28,6 +28,7 @@ if [[ ${existing_upgrade_issues} = "" ]]; then
28
git add ci/images/get-docker-url.sh > /dev/null
29
commit_message="Upgrade to Docker $latest_version in CI"
30
git commit -m "$commit_message" > /dev/null
31
+ popd
32
echo ${commit_message} > commit-details/message
33
else
34
echo "Pull request already exists."
0 commit comments