We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dd6758 commit a613b3dCopy full SHA for a613b3d
.github/workflows/test_update_from_h5p.yml
@@ -33,12 +33,10 @@ jobs:
33
- name: Check commit status
34
id: check-commit
35
run: |
36
- import json
37
import os
38
from pathlib import Path
39
# Get the latest commit from the API response
40
- data = json.loads("""${{ steps.get-commit.outputs.data }}""")
41
- latest_commit = data["commit"]["sha"].strip()
+ latest_commit = "${{ fromJson(steps.get-commit.outputs.data).commit.sha }}".strip()
42
# Check stored commit
43
commit_file = Path('packages/hashi/.h5p-commit-sha')
44
if commit_file.exists():
0 commit comments