Skip to content

Commit c92527a

Browse files
committed
Added an example for multi repos support in README.md.
Updated output string to see which repo failed to update.
1 parent 8a98bef commit c92527a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#### OWNER_REPOSITORY
2525
- Required: ***True***
26-
- Description: The owner and repository name. For example, octocat/Hello-World. If being ran in the repo being updated, you can use `${{github.repository}}`. Multiple repositories can be specified by a comma-separated list.
26+
- Description: The owner and repository name. For example, octocat/Hello-World. If being ran in the repo being updated, you can use `${{github.repository}}`. Multiple repositories can be specified by a comma-separated list (e.g. `OWNER_REPOSITORY: ${{ github.repository }},MyGitHubOrgOrUser/MyGitHubRepo`).
2727

2828
#### GITHUB_ACCESS_KEY_NAME
2929
- Required: ***False***

rotate_keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ def upload_secret(owner_repo,key_name,encrypted_value,pub_key_id,github_token):
132132
good_status_codes = [204,201]
133133

134134
if updated_secret.status_code not in good_status_codes:
135-
print(f'Got status code: {updated_secret.status_code} on updating {key_name}')
135+
print(f'Got status code: {updated_secret.status_code} on updating {key_name} in {owner_repo}')
136136
sys.exit(1)
137-
print(f'Uploaded {key_name} to {owner_repo}.')
137+
print(f'Updated {key_name} in {owner_repo}')
138138

139139
# run everything
140140
main_function()

0 commit comments

Comments
 (0)