Post 2024-05-01
All checks were successful
Deploy to Netlify / Deploy Hugo site to Netlify (push) Successful in 29s

This commit is contained in:
Alan Youngblood
2024-05-02 09:53:28 -04:00
parent 113e206b20
commit 65cee6c9b3
2 changed files with 23 additions and 1 deletions

View File

@ -50,7 +50,7 @@ jobs:
DESC=$(awk -v pat="description" -F":" '$0 ~ pat {print $2}' $SUBDIR/index.md)
echo "Posting the following to mastodon"
echo "Check out my latest blog post $TITLE about $DESC read more at https://allisthewave.com/posts/$POST"
curl https://fosstodon.org/api/v1/statuses -H 'Authorization: Bearer kdKxV9v4Cv-GwhAd5YHDqI6xJsKT4KkFX89FlhPvBzw' -F 'status=Check out my latest blog post $TITLE about $DESC read more at https://allisthewave.com/posts/$POST'
curl https://fosstodon.org/api/v1/statuses -H "Authorization: Bearer kdKxV9v4Cv-GwhAd5YHDqI6xJsKT4KkFX89FlhPvBzw" -F "status=Check out my latest blog post $TITLE about $DESC read more at https://allisthewave.com/posts/$POST"
else
echo "The commit message is not in format 'Post YYYY-MM-DD' or failed to parse..."
fi