This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit a6b95b3a5b8ab3acfec53f62c66259fa1fd5be77
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Oct 6 09:50:59 2020 +0200

    Replaces depreated set-env with env file (#11292)
    
    Github Actions deprecated the set-env action due to moderate security
    vulnerability they found.
    
    
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
    
    This commit replaces set-env with env file as explained in
    
    
https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#environment-files
    (cherry picked from commit 975558be11c0ae5d5f34316ae865edfec8662d81)
---
 .github/workflows/build-images-workflow-run.yml | 4 ++--
 .github/workflows/ci.yml                        | 6 +++---
 .github/workflows/scheduled_quarantined.yml     | 6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/build-images-workflow-run.yml 
b/.github/workflows/build-images-workflow-run.yml
index dad3e3a..5984a51 100644
--- a/.github/workflows/build-images-workflow-run.yml
+++ b/.github/workflows/build-images-workflow-run.yml
@@ -256,11 +256,11 @@ jobs:
         run: |
           DEFAULT_BRANCH=$(grep "export DEFAULT_BRANCH" 
scripts/ci/libraries/_initialization.sh | \
             awk 'BEGIN{FS="="} {print $3}' | sed s'/["}]//g')
-          echo "::set-env name=DEFAULT_BRANCH::${DEFAULT_BRANCH}"
+          echo "DEFAULT_BRANCH=${DEFAULT_BRANCH}" >> $GITHUB_ENV
           DEFAULT_CONSTRAINTS_BRANCH=$(grep "export 
DEFAULT_CONSTRAINTS_BRANCH" \
             scripts/ci/libraries/_initialization.sh | \
             awk 'BEGIN{FS="="} {print $3}' | sed s'/["}]//g')
-          echo "::set-env 
name=DEFAULT_CONSTRAINTS_BRANCH::${DEFAULT_CONSTRAINTS_BRANCH}"
+          echo "DEFAULT_CONSTRAINTS_BRANCH=${DEFAULT_CONSTRAINTS_BRANCH}" >> 
$GITHUB_ENV
           if [[ \
             ${DEFAULT_BRANCH} != "master" || \
             ( ${PYTHON_MAJOR_MINOR_VERSION} != "2.7" && 
${PYTHON_MAJOR_MINOR_VERSION} != "3.5" ) \
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2a4cec2..c433d82 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -426,15 +426,15 @@ jobs:
       - name: "Set issue id for master"
         if: github.ref == 'refs/heads/master'
         run: |
-          echo "::set-env name=ISSUE_ID::10118"
+          echo "ISSUE_ID=10118" >> $GITHUB_ENV
       - name: "Set issue id for v1-10-stable"
         if: github.ref == 'refs/heads/v1-10-stable'
         run: |
-          echo "::set-env name=ISSUE_ID::10127"
+          echo "ISSUE_ID=10127" >> $GITHUB_ENV
       - name: "Set issue id for v1-10-test"
         if: github.ref == 'refs/heads/v1-10-test'
         run: |
-          echo "::set-env name=ISSUE_ID::10128"
+          echo "ISSUE_ID=10128" >> $GITHUB_ENV
       - name: "Free space"
         run: ./scripts/ci/tools/ci_free_space_on_ci.sh
       - name: "Prepare CI image ${{env.PYTHON_MAJOR_MINOR_VERSION}}:${{ 
env.GITHUB_REGISTRY_PULL_IMAGE_TAG }}"
diff --git a/.github/workflows/scheduled_quarantined.yml 
b/.github/workflows/scheduled_quarantined.yml
index 16a654b..5468943 100644
--- a/.github/workflows/scheduled_quarantined.yml
+++ b/.github/workflows/scheduled_quarantined.yml
@@ -88,15 +88,15 @@ jobs:
       - name: "Set issue id for master"
         if: github.ref == 'refs/heads/master'
         run: |
-          echo "::set-env name=ISSUE_ID::10118"
+          echo "ISSUE_ID=10118" >> $GITHUB_ENV
       - name: "Set issue id for v1-10-stable"
         if: github.ref == 'refs/heads/v1-10-stable'
         run: |
-          echo "::set-env name=ISSUE_ID::10127"
+          echo "ISSUE_ID=10127" >> $GITHUB_ENV
       - name: "Set issue id for v1-10-test"
         if: github.ref == 'refs/heads/v1-10-test'
         run: |
-          echo "::set-env name=ISSUE_ID::10128"
+          echo "ISSUE_ID=10128" >> $GITHUB_ENV
       - name: "Free space"
         run: ./scripts/ci/tools/ci_free_space_on_ci.sh
       - name: "Build CI image ${{ matrix.python-version }}"

Reply via email to