Skip to content

Commit a613b3d

Browse files
authored
Update test_update_from_h5p.yml
1 parent 6dd6758 commit a613b3d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/test_update_from_h5p.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,10 @@ jobs:
3333
- name: Check commit status
3434
id: check-commit
3535
run: |
36-
import json
3736
import os
3837
from pathlib import Path
3938
# Get the latest commit from the API response
40-
data = json.loads("""${{ steps.get-commit.outputs.data }}""")
41-
latest_commit = data["commit"]["sha"].strip()
39+
latest_commit = "${{ fromJson(steps.get-commit.outputs.data).commit.sha }}".strip()
4240
# Check stored commit
4341
commit_file = Path('packages/hashi/.h5p-commit-sha')
4442
if commit_file.exists():

0 commit comments

Comments
 (0)