You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: The Four Seasons# Schedule to run every 3 monthson:
schedule:
# At 09:00 in [1.1, 4.1, 7.1, 10.1] with UTC
- cron: "0 9 1 */3 *"jobs:
# SSAW is Spring, Summer, Autumn, Winterssaw:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v2
- name: Create season fileworking-directory: ccrun: | year=$(date +%Y) month=$(date +%m) case ${month} in 12|1|2) season="winter" sentence="The winter wind howls through the trees." welcome="Welcome to the quiet beauty of winter in ${year}." ;; 3|4|5) season="spring" sentence="The spring rain brings new life to the world." welcome="Welcome to the renewal and growth of spring in ${year}." ;; 6|7|8) season="summer" sentence="The summer sun shines brightly, warming the earth." welcome="Welcome to the vibrant warmth of summer in ${year}." ;; 9|10|11) season="autumn" sentence="The autumn leaves fall gently to the ground." welcome="Welcome to the colorful and reflective season of autumn in ${year}." ;; esac file_name="${year}-${season}.md" echo "\ --- title: ${season} in ${year} date: $(date +'%Y-%m-%d %H:%M:%S') categories: [time] tags: [time, ${year}, ${season}] --- # Welcome ${welcome} ${sentence} " > "${file_name}" git add "${file_name}" git config --global user.email "[email protected]" git config --global user.name "GitHub Actions" git commit -m "Add ${file_name}"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here is my Github Actions:
Trial
If I remove
it can works fine
Another issue
If it all works fine, how can I check the generated file as my expected?
Beta Was this translation helpful? Give feedback.
All reactions