This commit is contained in:
brostosjoined 2025-06-01 17:50:38 +03:00
parent 49e1559192
commit 10c467b333
2 changed files with 5 additions and 3 deletions

View file

@ -43,9 +43,10 @@ jobs:
- name: Apply Version Metadata
run: |
echo "Log:"
git log --pretty=format:'%H' -n 1
python test/auto_apply_version_metadata.py $(git log --pretty=format:'%h' -n 1)
LAST_SHORTEN_COMMIT_HASH=$(git log --pretty=format:'%h' -n 1)
LAST_COMMIT_HASH=$(git log --pretty=format:'%H' -n 1)
CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r "$LAST_COMMIT_HASH")
python test/auto_apply_version_metadata.py "$LAST_SHORTEN_COMMIT_HASH" "$CHANGED_FILES"
- name: Commit Version Metadata
uses: stefanzweifel/git-auto-commit-action@v5

View file

@ -221,6 +221,7 @@ def auto_apply_version_metadata(last_commit_sha):
if __name__ == "__main__":
try:
last_commit_sha = sys.argv[1]
print(type(sys.argv[1]), sys.argv[1])
except KeyError:
raise ValueError("Last commit SHA not provided.")
else: