Skip to content

Commit 5601e56

Browse files
committed
vault backup: 2025-06-01 10:11:16
Affected files: .obsidian/workspace.json fleeting-notes/2025-05-31.md fleeting-notes/2025-06-01.md
1 parent 51e2a1f commit 5601e56

File tree

3 files changed

+62
-7
lines changed

3 files changed

+62
-7
lines changed

.obsidian/workspace.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"state": {
1414
"type": "markdown",
1515
"state": {
16-
"file": "fleeting-notes/2025-05-31.md",
16+
"file": "fleeting-notes/2025-06-01.md",
1717
"mode": "source",
1818
"source": false
1919
},
2020
"icon": "lucide-file",
21-
"title": "2025-05-31"
21+
"title": "2025-06-01"
2222
}
2323
}
2424
]
@@ -99,7 +99,8 @@
9999
}
100100
],
101101
"direction": "horizontal",
102-
"width": 262.5
102+
"width": 262.5,
103+
"collapsed": true
103104
},
104105
"right": {
105106
"id": "7d79c914da9cc99e",
@@ -174,8 +175,9 @@
174175
},
175176
"active": "2d0790ea156518ae",
176177
"lastOpenFiles": [
177-
"fleeting-notes/2024-04-07.md",
178178
"fleeting-notes/2025-05-31.md",
179+
"fleeting-notes/2025-06-01.md",
180+
"fleeting-notes/2024-04-07.md",
179181
"fleeting-notes/2024-04-15.md",
180182
"fleeting-notes/2024-04-20.md",
181183
"fleeting-notes/2024-04-21.md",
@@ -205,7 +207,6 @@
205207
"fleeting-notes/2025-05-07.md",
206208
"fleeting-notes/2025-05-14.md",
207209
"fleeting-notes/2024-11-03.md",
208-
"fleeting-notes/2025-05-13.md",
209210
"retrospectives",
210211
"attachments/interative-hike-map.gif",
211212
"attachments/GX010518_1680688090641.jpg",

fleeting-notes/2025-05-31.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ tags:
44
- dev-journal
55
---
66

7-
testing github action 12343321s
8-
S
7+
testing github action 12343321

fleeting-notes/2025-06-01.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
publish_date: 2025-06-01
3+
tags:
4+
- github
5+
---
6+
7+
8+
Creating a GitHub action with an on action of workflow_dispatch lets you create a webhook to run anything essentially.
9+
10+
for example, if I have a GitHub action called `deploy.yml` my GitHub repo called `my-code` I can execute this webhook with the following curl:
11+
12+
```bash
13+
curl -X POST \
14+
https://api.github.com/repos/my-code/your-repo/actions/workflows/deploy.yml/dispatches \
15+
-H "Authorization: token YOUR_GITHUB_PAT" \
16+
-H "Accept: application/vnd.github.v3+json" \
17+
-H "Content-Type: application/json" \
18+
-d '{"ref":"main"}'
19+
```
20+
21+
For some reason Cloudflare workers dont have deploy webhook like Cloudflare pages out the box, so this solution works as a pretty good alternative, heres the action that redeploys my website:
22+
23+
```yaml
24+
# deploy-chiubaca-com.yml
25+
name: Redeploy chiubaca.com to Cloudflare worker
26+
on:
27+
workflow_dispatch:
28+
jobs:
29+
deploy:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
- uses: pnpm/action-setup@v2
34+
with:
35+
version: 8
36+
- name: Install dependencies
37+
run: pnpm install
38+
- name: Build chiubaca.com
39+
run: pnpm -w run chiubaca.com:build
40+
- name: Publish to Cloudflare
41+
run: pnpm -w run chiubaca.com:deploy
42+
env:
43+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
44+
```
45+
46+
Like in the above example, i can execute this action just by running:
47+
```bash
48+
curl -X POST \
49+
https://api.github.com/repos/chiubaca/chiubaca-monorepo/actions/workflows/deploy-chiubaca-com.yml/dispatches \
50+
-H "Authorization: token ${{secrets.GHUB_PAT_FOR_CHIUBACA_COM_REDEPLOY_ACTION}}" \
51+
-H "Accept: application/vnd.github.v3+json" \
52+
-H "Content-Type: application/json" \
53+
-d '{"ref":"main"}'
54+
55+
```

0 commit comments

Comments
 (0)