Commit 3ce276a
Migrate crosspost workflow to per-platform actions (#346)
* Migrate crosspost workflow to per-platform actions
Replace tgagor/action-crosspost with dedicated actions for each
platform: cbrgm/mastodon-github-action, cbrgm/bluesky-github-action,
sinedied/publish-devto, and higgins/action-hackernews-post (Show HN).
Each platform runs as an independent job so failures are isolated.
Dev.to publishes a release article from a generated markdown file.
HackerNews requires new HN_USERNAME and HN_PASSWORD secrets.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Fix HackerNews inputs and Mastodon URL scheme
Pass HN credentials and post fields via with: instead of env: as
required by higgins/action-hackernews-post action inputs.
Prefix MASTODON_HOST with https:// since cbrgm/mastodon-github-action
expects a full URL and the secret stores a bare hostname.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Address PR review: SHA pinning, checkout v6, dev.to safety
- Pin all four third-party actions to immutable commit SHAs
- Align actions/checkout to repository-standard v6
- Scope dev.to files glob to the current release only
- Pass tag/repo values via env: to avoid shell interpolation risks
- Guard post creation with [ ! -f ] to preserve dev.to article IDs
on reruns, preventing duplicate article creation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add release validation, HN docs, safe post path creation
- Add validate job that runs gh release view before any platform job,
blocking all four crossposts on a mistyped workflow_dispatch tag
- Replace fixed mkdir -p posts with mkdir -p on the file's parent dir
so tags containing path separators don't silently fail
- Document HN_USERNAME and HN_PASSWORD in distribution-submission.md
alongside the other social crosspost secrets
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Update action versions in crosspost workflow
* Fix Hacker News naming, shell injection, and account guidance
- Rename job and doc heading to canonical "Hacker News" (two words)
- Pass RELEASE_TAG via env: in the validate step so shell injection
via a crafted tag cannot reach the runner before gh release view
- Update HN docs to require a dedicated posting-only account and warn
against using a maintainer's primary account (no app-password support)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Gate Hacker News crosspost to workflow dispatch only
Agent-Logs-Url: https://github.com/nbauma109/jd-gui-duo/sessions/477b213b-4bb6-44ec-9285-4b3c94d47db9
Co-authored-by: nbauma109 <9403560+nbauma109@users.noreply.github.com>
* Run crosspost workflow only on workflow dispatch
Agent-Logs-Url: https://github.com/nbauma109/jd-gui-duo/sessions/509f3a92-80ea-47d1-b856-435cc46df9f9
Co-authored-by: nbauma109 <9403560+nbauma109@users.noreply.github.com>
---------
Co-authored-by: nbauma109 <nbauma109@github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: nbauma109 <9403560+nbauma109@users.noreply.github.com>1 parent 2db97d8 commit 3ce276a
2 files changed
Lines changed: 107 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | | - | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
22 | 36 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 37 | + | |
| 38 | + | |
27 | 39 | | |
28 | | - | |
29 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
30 | 59 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
109 | 120 | | |
110 | 121 | | |
111 | 122 | | |
| |||
0 commit comments