Skip to content

Commit 7c6ba54

Browse files
Antoine de Chevignéclaude
andcommitted
feat(blog): update project board card to Published on publish
Uses existing pipeline helpers (getProjectItems, updateCardStatus) to find the card by article path and move it to Published status. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e8281de commit 7c6ba54

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/blog-publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,27 @@ jobs:
106106
echo "Created PR: $PR_URL"
107107
gh pr merge "$PR_URL" --squash --admin --delete-branch
108108
echo "Published: https://tryethernal.com/blog/$SLUG"
109+
110+
- uses: actions/setup-node@v4
111+
if: steps.publish.outputs.slug != ''
112+
with:
113+
node-version: 20
114+
115+
- name: Update project card to Published
116+
if: steps.publish.outputs.slug != ''
117+
env:
118+
GH_TOKEN: ${{ secrets.GH_PAT }}
119+
ARTICLE: ${{ steps.resolve.outputs.article }}
120+
run: |
121+
cd blog/pipeline
122+
node -e "
123+
import { getProjectItems, updateCardStatus } from './project.js';
124+
const items = getProjectItems();
125+
const card = items.find(i => i.articlePath === process.env.ARTICLE);
126+
if (card) {
127+
updateCardStatus(card.id, 'published');
128+
console.log('Updated card to Published:', card.title);
129+
} else {
130+
console.log('No project card found for article:', process.env.ARTICLE);
131+
}
132+
"

0 commit comments

Comments
 (0)