File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 3939 latest_commit = "${{ fromJson(steps.get-commit.outputs.data).commit.sha }}".strip()
4040 # Check stored commit
4141 commit_file = Path('packages/hashi/.h5p-commit-sha')
42+ stored_commit = ""
4243 if commit_file.exists():
4344 stored_commit = commit_file.read_text().strip()
4445 has_changed = stored_commit != latest_commit
4748 has_changed = True
4849 # Set outputs for GitHub Actions
4950 with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
51+ print(f"stored_commit={stored_commit}", file=f)
5052 print(f"latest_commit={latest_commit}", file=f)
5153 print(f"changed={'true' if has_changed else 'false'}", file=f)
5254 shell : python
9092 delete-branch : true
9193 title : ' Update from target repository commit'
9294 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 .
9496 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 }}
9598 base : main
9699
You can’t perform that action at this time.
0 commit comments