Skip to content

Commit 2ac609e

Browse files
committed
chore: fix post formatting
1 parent 71295e6 commit 2ac609e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/bluesky-post.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
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 = []

0 commit comments

Comments
 (0)