You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2022/10/18 15:08:41 UTC

[airflow] 06/13: Use the full path to the workflow being edited (#26386)

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

ephraimanierobi pushed a commit to branch v2-4-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 7c7ce3c7bf6f190a4611cf96747c6d3b93398ab7
Author: Mark Norman Francis <no...@201created.com>
AuthorDate: Wed Sep 14 13:39:58 2022 +0100

    Use the full path to the workflow being edited (#26386)
    
    (cherry picked from commit 3e917f1c02c4654a135c9a740ee264b766bbc58a)
---
 scripts/ci/runners/sync_authors.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/scripts/ci/runners/sync_authors.py b/scripts/ci/runners/sync_authors.py
index 8fc9717e5b..6e68352711 100644
--- a/scripts/ci/runners/sync_authors.py
+++ b/scripts/ci/runners/sync_authors.py
@@ -31,10 +31,10 @@ import toml
 #
 # This script should replace the contents of the array with a new list of
 # identically formatted names, such that changes to the source of truth:
-
 AUTHORS = 'https://raw.githubusercontent.com/apache/airflow-ci-infra/main/authors.toml'
 
-# end up being reflected in the ci.yml.
+# ...end up being reflected in the ci.yml:
+WORKFLOW = '.github/workflows/ci.yml'
 
 
 req = requests.get(AUTHORS)
@@ -50,8 +50,7 @@ for author in sorted(author_set):
 
 authors = authors[:-2]
 
-with open('ci.yml') as handle:
-
+with open(WORKFLOW) as handle:
     new_ci = re.sub(
         r'''
             ^
@@ -70,5 +69,5 @@ with open('ci.yml') as handle:
         flags=re.DOTALL | re.VERBOSE,
     )
 
-with open('ci.yml', 'w') as handle:
+with open(WORKFLOW, 'w') as handle:
     handle.write(new_ci)