Skip to content

Sync resume.json to Gist #101

Sync resume.json to Gist

Sync resume.json to Gist #101

Workflow file for this run

name: Sync resume.json to Gist
on:
push:
branches:
- main
paths:
- "manual/resume.json"
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update Gist
env:
GIST_TOKEN: ${{ secrets.GIST_TOKEN }}
run: |
jq -n --rawfile content manual/resume.json \
'{"files": {"resume.json": {"content": $content}}}' > /tmp/gist_payload.json
curl -sS -X PATCH \
-H "Authorization: token $GIST_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @/tmp/gist_payload.json \
https://api.github.com/gists/f104d86b75b1f3939188dc8d20c2397c