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 2020/10/27 09:18:50 UTC
[airflow] branch master updated: Retrieve PR labels from the
associated PR (#11820)
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 b161642 Retrieve PR labels from the associated PR (#11820)
b161642 is described below
commit b16164272a2804a7cd96e09f369d2f09d616b81f
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Tue Oct 27 10:17:09 2020 +0100
Retrieve PR labels from the associated PR (#11820)
This change is needed to implement optimisation of running only
limited version of the matrix tests for PRs that are not yet
approved by committers.
---
.github/workflows/build-images-workflow-run.yml | 6 ++++--
.github/workflows/ci.yml | 7 +++++++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/build-images-workflow-run.yml b/.github/workflows/build-images-workflow-run.yml
index 063f31c..a3ca568 100644
--- a/.github/workflows/build-images-workflow-run.yml
+++ b/.github/workflows/build-images-workflow-run.yml
@@ -53,14 +53,16 @@ jobs:
sourceHeadSha: ${{ steps.source-run-info.outputs.sourceHeadSha }}
mergeCommitSha: ${{ steps.source-run-info.outputs.mergeCommitSha }}
targetCommitSha: ${{ steps.source-run-info.outputs.targetCommitSha }}
+ pullRequestNumber: ${{ steps.workflow-run-info.outputs.pullRequestNumber }}
+ pullRequestLabels: ${{ steps.workflow-run-info.outputs.pullRequestLabels }}
sourceEvent: ${{ steps.source-run-info.outputs.sourceEvent }}
cacheDirective: ${{ steps.cache-directive.outputs.docker-cache }}
buildImages: ${{ steps.build-images.outputs.buildImages }}
upgradeToLatestConstraints: ${{ steps.upgrade-constraints.outputs.upgradeToLatestConstraints }}
if: github.repository == 'apache/airflow' || github.event.workflow_run.event != 'schedule'
steps:
- - name: "Get information about the origin 'CI Build' run"
- uses: potiuk/get-workflow-origin@c657bb36aef4a7402bbe9b2e09a820320f8ff447 # v1
+ - name: "Get information about the original trigger of the run"
+ uses: potiuk/get-workflow-origin@e3ba776faee1134e17551924b852bfb374e1703d # v1_1
id: source-run-info
with:
token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 45d8e64..498e7fa 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -94,8 +94,15 @@ jobs:
basic-checks-only: ${{ steps.selective-checks.outputs.basic-checks-only }}
needs-helm-tests: ${{ steps.selective-checks.outputs.needs-helm-tests }}
needs-api-tests: ${{ steps.selective-checks.outputs.needs-api-tests }}
+ pullRequestNumber: ${{ steps.source-run-info.outputs.pullRequestNumber }}
+ pullRequestLabels: ${{ steps.source-run-info.outputs.pullRequestLabels }}
if: github.repository == 'apache/airflow' || github.event_name != 'schedule'
steps:
+ - name: "Get information about the PR"
+ uses: potiuk/get-workflow-origin@e3ba776faee1134e17551924b852bfb374e1703d # v1_1
+ id: source-run-info
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v2
- name: >