We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 273a57d commit ea893ecCopy full SHA for ea893ec
entrypoint.py
@@ -9,6 +9,7 @@
9
from github3.exceptions import NotFoundError, AuthenticationFailed
10
11
ENCODING = 'utf-8'
12
+SHORT_SHA_LEN = 7
13
14
15
def get_input(key):
@@ -93,7 +94,7 @@ def main():
93
94
print(f'Removed {file_path}')
95
96
if pushed_change:
- commit_sha = pushed_change['commit'].sha
97
+ commit_sha = pushed_change['commit'][:SHORT_SHA_LEN]
98
print(f'Pushed {commit_sha} to {branch}')
99
else:
100
print('No changes to push')
0 commit comments