-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70dc3ba
commit f96de21
Showing
7 changed files
with
364 additions
and
65 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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Scheduled post action | ||
|
||
A GitHub action that creates a scheduled post from data files generated by [read-action](https://github.com/katydecorah/read-action), [bookmark-action](https://github.com/katydecorah/bookmark-action), and [spotify-to-yaml-action](https://github.com/katydecorah/spotify-to-yaml-action). | ||
A GitHub action that creates a scheduled post from data files generated by [read-action](https://github.com/library-pals/read-action), [bookmark-action](https://github.com/library-pals/bookmark-action), and [spotify-to-yaml-action](https://github.com/library-pals/spotify-to-yaml-action). | ||
|
||
If you're including playlist data generated by the spotify-to-yaml-action, you'll want to make sure it's schedule to run before this action. | ||
If you're including playlist data generated by the spotify-to-yaml-action, make sure it's schedule to run before this action. | ||
|
||
<!-- START GENERATED DOCUMENTATION --> | ||
|
||
|
@@ -30,7 +30,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Write scheduled post | ||
uses: katydecorah/seasonal[email protected] | ||
uses: library-pals/scheduled[email protected] | ||
with: | ||
github-username: katydecorah | ||
github-repository: archive | ||
|
@@ -55,8 +55,9 @@ jobs: | |
name: Seasonal scheduled post | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "00 02 20 Mar,Jun,Sep,Dec *" | ||
- cron: "0 1 20 Mar,Jun,Sep,Dec *" | ||
|
||
jobs: | ||
scheduled-post: | ||
|
@@ -65,34 +66,10 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setpost title and date | ||
run: | | ||
MONTH=$(date +%m) | ||
YEAR=$(date +%Y) | ||
case $MONTH in | ||
03) | ||
echo "POST_TITLE=$(($YEAR - 1))/${YEAR} Winter" >> $GITHUB_ENV | ||
echo "START_DATE=$(($YEAR - 1))-12-20" >> $GITHUB_ENV | ||
echo "END_DATE=${YEAR}-03-20" >> $GITHUB_ENV | ||
;; | ||
06) | ||
echo "POST_TITLE=${YEAR} Spring" >> $GITHUB_ENV | ||
echo "START_DATE=${YEAR}-03-20" >> $GITHUB_ENV | ||
echo "END_DATE=${YEAR}-06-20" >> $GITHUB_ENV | ||
;; | ||
09) | ||
echo "POST_TITLE=${YEAR} Summer" >> $GITHUB_ENV | ||
echo "START_DATE=${YEAR}-06-20" >> $GITHUB_ENV | ||
echo "END_DATE=${YEAR}-09-20" >> $GITHUB_ENV | ||
;; | ||
12) | ||
echo "POST_TITLE=${YEAR} Fall" >> $GITHUB_ENV | ||
echo "START_DATE=${YEAR}-09-20" >> $GITHUB_ENV | ||
echo "END_DATE=${YEAR}-12-20" >> $GITHUB_ENV | ||
;; | ||
esac | ||
- name: Set post title and dates | ||
uses: library-pals/[email protected]/workflows/set-seasonal-dates.js | ||
- name: Write scheduled post | ||
uses: katydecorah/[email protected] | ||
uses: ./ | ||
with: | ||
github-username: katydecorah | ||
github-repository: archive | ||
|
@@ -144,7 +121,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Write scheduled post | ||
uses: katydecorah/seasonal[email protected] | ||
uses: library-pals/scheduled[email protected] | ||
with: | ||
github-username: katydecorah | ||
github-repository: archive | ||
|
@@ -181,4 +158,10 @@ jobs: | |
- `source-playlist`: Define the file path for the playlist data generated by [spotify-to-yaml-action](https://github.com/katydecorah/spotify-to-yaml-action). If you do not have playlists, set this value to `false`. Default: `_data/playlists.yml`. | ||
|
||
- `book-tags`: Allow specific tags to be passed through. Separate each tag with a comma. | ||
|
||
- `start-date`: The start date for the post. The format is `YYYY-MM-DD`. This can be set as an action input or workflow input. | ||
|
||
- `end-date`: The end date for the post. The format is `YYYY-MM-DD`. This can be set as an action input or workflow input. | ||
|
||
- `post-title`: The title of the post. This can be set as an action input or workflow input. | ||
<!-- END GENERATED DOCUMENTATION --> |
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
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
Oops, something went wrong.