Skip to content

Commit e9c81bd

Browse files
committed
🔄 synced local '.github/workflows/update-module-properties.yml' with remote '.releases/update-module-properties.yml'
1 parent 7edef99 commit e9c81bd

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

‎.github/workflows/update-module-properties.yml‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ jobs:
6565
module_name = module_match.group(1)
6666
print(f"Module name: {module_name}")
6767
68+
# Save module name for next steps (do this early in case of errors)
69+
with open('module_name.txt', 'w') as f:
70+
f.write(module_name)
71+
6872
# Construct API URL
6973
api_url = f"https://api.github.com/repos/{repo_owner}/{repo_name}/releases/tags/{release_tag}"
7074
@@ -208,17 +212,18 @@ jobs:
208212
print(f"\nSuccessfully updated {properties_file}")
209213
print(f"Total versions: {len(sorted_properties)}")
210214
211-
# Save module name for next steps
212-
with open('module_name.txt', 'w') as f:
213-
f.write(module_name)
214-
215215
EOF
216216
217217
- name: Read module name
218218
id: module_info
219+
if: always()
219220
run: |
220-
MODULE_NAME=$(cat module_name.txt)
221-
echo "module_name=$MODULE_NAME" >> $GITHUB_OUTPUT
221+
if [ -f module_name.txt ]; then
222+
MODULE_NAME=$(cat module_name.txt)
223+
echo "module_name=$MODULE_NAME" >> $GITHUB_OUTPUT
224+
else
225+
echo "module_name=unknown" >> $GITHUB_OUTPUT
226+
fi
222227
223228
- name: Check for changes
224229
id: check_changes

0 commit comments

Comments
 (0)