mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-11-07 17:36:00 +00:00
.
This commit is contained in:
parent
49e1559192
commit
10c467b333
2 changed files with 5 additions and 3 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
|
@ -43,9 +43,10 @@ jobs:
|
||||||
|
|
||||||
- name: Apply Version Metadata
|
- name: Apply Version Metadata
|
||||||
run: |
|
run: |
|
||||||
echo "Log:"
|
LAST_SHORTEN_COMMIT_HASH=$(git log --pretty=format:'%h' -n 1)
|
||||||
git log --pretty=format:'%H' -n 1
|
LAST_COMMIT_HASH=$(git log --pretty=format:'%H' -n 1)
|
||||||
python test/auto_apply_version_metadata.py $(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
|
- name: Commit Version Metadata
|
||||||
uses: stefanzweifel/git-auto-commit-action@v5
|
uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
|
|
|
||||||
|
|
@ -221,6 +221,7 @@ def auto_apply_version_metadata(last_commit_sha):
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
last_commit_sha = sys.argv[1]
|
last_commit_sha = sys.argv[1]
|
||||||
|
print(type(sys.argv[1]), sys.argv[1])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise ValueError("Last commit SHA not provided.")
|
raise ValueError("Last commit SHA not provided.")
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue