File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 39
39
latest_commit = "${{ fromJson(steps.get-commit.outputs.data).commit.sha }}".strip()
40
40
# Check stored commit
41
41
commit_file = Path('packages/hashi/.h5p-commit-sha')
42
+ stored_commit = ""
42
43
if commit_file.exists():
43
44
stored_commit = commit_file.read_text().strip()
44
45
has_changed = stored_commit != latest_commit
47
48
has_changed = True
48
49
# Set outputs for GitHub Actions
49
50
with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
51
+ print(f"stored_commit={stored_commit}", file=f)
50
52
print(f"latest_commit={latest_commit}", file=f)
51
53
print(f"changed={'true' if has_changed else 'false'}", file=f)
52
54
shell : python
90
92
delete-branch : true
91
93
title : ' Update from target repository commit'
92
94
body : |
93
- This PR was automatically created by the Update H5P JS library.
95
+ This PR was automatically created by the Update H5P JS library Github Action .
94
96
Updates from target repository commit: ${{ steps.check-commit.outputs.latest_commit }}
97
+ https://github.com/h5p/h5p-php-library/compare/${{ steps.check-commit.outputs.stored_commit }}...${{ steps.check-commit.outputs.latest_commit }}
95
98
base : main
96
99
You can’t perform that action at this time.
0 commit comments