Skip to content

Commit 3e917f1

Browse files
authored
Use the full path to the workflow being edited (#26386)
1 parent c89e92f commit 3e917f1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/ci/runners/sync_authors.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
#
3434
# This script should replace the contents of the array with a new list of
3535
# identically formatted names, such that changes to the source of truth:
36-
3736
AUTHORS = 'https://raw.githubusercontent.com/apache/airflow-ci-infra/main/authors.toml'
3837

39-
# end up being reflected in the ci.yml.
38+
# ...end up being reflected in the ci.yml:
39+
WORKFLOW = '.github/workflows/ci.yml'
4040

4141

4242
req = requests.get(AUTHORS)
@@ -52,8 +52,7 @@
5252

5353
authors = authors[:-2]
5454

55-
with open('ci.yml') as handle:
56-
55+
with open(WORKFLOW) as handle:
5756
new_ci = re.sub(
5857
r'''
5958
^
@@ -72,5 +71,5 @@
7271
flags=re.DOTALL | re.VERBOSE,
7372
)
7473

75-
with open('ci.yml', 'w') as handle:
74+
with open(WORKFLOW, 'w') as handle:
7675
handle.write(new_ci)

0 commit comments

Comments
 (0)