-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save Mastodon URL as "statusUrl" on a posted note
- Loading branch information
Showing
2 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,15 +144,17 @@ jobs: | |
todo_file: ${{ env.MASTODON_TODO }} | ||
log_file: ${{ env.MASTODON_LOG_FILE }} | ||
|
||
- name: Commit and push posted notes | ||
- name: Commit and push changed files | ||
# Pull first, since something could've been pushed in-between. | ||
run: | | ||
git pull | ||
git config user.name "Automated" | ||
git config user.email "[email protected]" | ||
git add $log_file | ||
# The note that was posted now as an "url" in the frontmatter | ||
git add $log_file $dir | ||
timestamp=$(date -u) | ||
git commit -m "Latest post to Mastodon: $timestamp [skip-ci]" || exit 0 | ||
git push | ||
env: | ||
log_file: ${{ env.MASTODON_LOG_FILE }} | ||
dir: ${{ env.NOTES_DIR }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters