Skip to content

Commit

Permalink
update message for commit
Browse files Browse the repository at this point in the history
  • Loading branch information
codercatdev committed Dec 18, 2023
1 parent 00a419f commit 262ab77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/syndicate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
PRIVATE_DEVTO: ${{ secrets.PRIVATE_DEVTO }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Shrink images
commit_message: devto updated
9 changes: 5 additions & 4 deletions apps/codingcatdev/scripts/dev-to.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ for await (const file of g) {

// Get new devto url and update
if (response.status === 201) {
const { url } = response.json();
if (url) {
const json = await response.json();
console.log('data from devto', json);
if (json?.url) {
console.log('Updating', file, { devto: json.url });
const newMdFile = matter.stringify(content, {
...data,
devto: url
devto: json.url
});
console.log('Updating', file, { devto: url });
fs.writeFileSync(file, newMdFile, { encoding: 'utf8', flag: 'r' });
}
}
Expand Down

1 comment on commit 262ab77

@vercel
Copy link

@vercel vercel bot commented on 262ab77 Dec 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

codingcat-dev – ./apps/codingcatdev

codingcat-dev-coding-cat-dev.vercel.app
codingcat.dev
codingcat-dev-git-main-coding-cat-dev.vercel.app

Please sign in to comment.