File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 1818 runs-on : ubuntu-latest
1919 steps :
2020 - name : Post to BlueSky
21+ env :
22+ POST_INPUT : ${{ toJSON(inputs.post_text) }}
2123 run : |
2224 # Authenticate with BlueSky
2325 echo "Authenticating with BlueSky..."
@@ -42,16 +44,10 @@ jobs:
4244 # Parse markdown links and calculate facets using Python
4345 echo "Parsing markdown and calculating facets..."
4446
45- # Write input to temp file to avoid shell escaping issues
46- cat > /tmp/post_input.txt << 'INPUTEOF'
47- ${{ inputs.post_text }}
48- INPUTEOF
49-
5047 RESULT=$(python3 << 'PYEOF'
51- import json, re
48+ import json, re, os
5249
53- with open('/tmp/post_input.txt', 'r') as f:
54- input_text = f.read().strip()
50+ input_text = json.loads(os.environ['POST_INPUT'])
5551
5652 # Parse markdown links [text](url) and build facets
5753 facets = []
You can’t perform that action at this time.
0 commit comments