You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2021/05/09 19:32:05 UTC
[airflow] branch master updated: Use "apache/airflow" repository as
source of constraints (#15746)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 7933aaf Use "apache/airflow" repository as source of constraints (#15746)
7933aaf is described below
commit 7933aaf07f5672503cfd83361b00fda9d4c281a3
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sun May 9 21:31:42 2021 +0200
Use "apache/airflow" repository as source of constraints (#15746)
In case build is done in master of a fork repository, constraints
should be taken from the 'apache/airflow' not from the original
repository. The fork might simply have outdated constraints
branches if they were forked some time ago.
---
.github/workflows/build-images-workflow-run.yml | 2 +-
.github/workflows/ci.yml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/build-images-workflow-run.yml b/.github/workflows/build-images-workflow-run.yml
index e315161..72d4b31 100644
--- a/.github/workflows/build-images-workflow-run.yml
+++ b/.github/workflows/build-images-workflow-run.yml
@@ -36,7 +36,7 @@ env:
# Airflow one is going to be used
CONSTRAINTS_GITHUB_REPOSITORY: >-
${{ secrets.CONSTRAINTS_GITHUB_REPOSITORY != '' &&
- secrets.CONSTRAINTS_GITHUB_REPOSITORY || github.repository }}
+ secrets.CONSTRAINTS_GITHUB_REPOSITORY || 'apache/airflow' }}
# This token is WRITE one - workflow_run type of events always have the WRITE token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# This token should not be empty in workflow_run type of event.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9de3b3c..927a403 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -43,7 +43,7 @@ env:
# Airflow one is going to be used
CONSTRAINTS_GITHUB_REPOSITORY: >-
${{ secrets.CONSTRAINTS_GITHUB_REPOSITORY != '' &&
- secrets.CONSTRAINTS_GITHUB_REPOSITORY || github.repository }}
+ secrets.CONSTRAINTS_GITHUB_REPOSITORY || 'apache/airflow' }}
# In builds from forks, this token is read-only. For scheduler/direct push it is WRITE one
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# In builds from forks, this token is empty, and this is good because such builds do not even try