|
| 1 | +#!/usr/bin/env bash |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 3 | +# or more contributor license agreements. See the NOTICE file |
| 4 | +# distributed with this work for additional information |
| 5 | +# regarding copyright ownership. The ASF licenses this file |
| 6 | +# to you under the Apache License, Version 2.0 (the |
| 7 | +# "License"); you may not use this file except in compliance |
| 8 | +# with the License. You may obtain a copy of the License at |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# Unless required by applicable law or agreed to in writing, |
| 13 | +# software distributed under the License is distributed on an |
| 14 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | +# KIND, either express or implied. See the License for the |
| 16 | +# specific language governing permissions and limitations |
| 17 | +# under the License. |
| 18 | +export PYTHON_MAJOR_MINOR_VERSION=${PYTHON_MAJOR_MINOR_VERSION:-3.6} |
| 19 | + |
| 20 | +# shellcheck source=scripts/ci/libraries/_script_init.sh |
| 21 | +. "$( dirname "${BASH_SOURCE[0]}" )/../libraries/_script_init.sh" |
| 22 | + |
| 23 | +get_environment_for_builds_on_ci |
| 24 | + |
| 25 | +cp -v ./artifacts/constraints-*/constraints*.txt repo/ |
| 26 | +cd repo || exit 1 |
| 27 | +git config --local user.email "[email protected]" |
| 28 | +git config --local user.name "Automated Github Actions commit" |
| 29 | +git diff --exit-code || git commit --all --message "Updating constraints. Build id:${CI_BUILD_ID} |
| 30 | +
|
| 31 | +This update in constraints is automatically committed by the CI 'constraints-push' step based on |
| 32 | +HEAD of '${CI_REF}' in '${CI_TARGET_REPO}' |
| 33 | +with commit sha ${COMMIT_SHA}. |
| 34 | +
|
| 35 | +All tests passed in this build so we determined we can push the updated constraints. |
| 36 | +
|
| 37 | +See https://github.com/apache/airflow/blob/master/README.md#installing-from-pypi for details. |
| 38 | +" |
0 commit comments