Skip to content

Commit

Permalink
update sneek
Browse files Browse the repository at this point in the history
  • Loading branch information
Elevhate committed Sep 12, 2024
1 parent 10bef26 commit 70e0ab7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/snk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ on:
branches:
- main
schedule:
- cron: "0 */12 * * *" # every 12 hours
- cron: "0 */6 * 3,4,5 *" # every 6 hours, from March to May
- cron: "0 */6 * 6,7,8 *" # every 6 hours, from June to August
- cron: "0 */6 * 9,10,11 *" # every 6 hours, from September to November
- cron: "0 */6 * 12,1,2 *" # every 6 hours, from December to February

jobs:
generate:
Expand All @@ -21,7 +24,7 @@ jobs:

# winter theme
- name: generate github-contribution-grid-snake.svg
if: github.event.schedule == '0 */12 * 12,1,2 *' || ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && contains('12 01 02', env.MONTH))
if: github.event.schedule == '0 */6 * 12,1,2 *' || ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && contains('12 01 02', env.MONTH))
uses: Platane/snk/svg-only@v3
with:
github_user_name: ${{ github.repository_owner }}
Expand All @@ -31,7 +34,7 @@ jobs:
# spring theme
- name: generate github-contribution-grid-snake.svg
if: github.event.schedule == '0 */12 * 3,4,5 *' || ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && contains('03 04 05', env.MONTH))
if: github.event.schedule == '0 */6 * 3,4,5 *' || ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && contains('03 04 05', env.MONTH))
uses: Platane/snk/svg-only@v3
with:
github_user_name: ${{ github.repository_owner }}
Expand All @@ -41,7 +44,7 @@ jobs:
# summer theme
- name: generate github-contribution-grid-snake.svg
if: github.event.schedule == '0 */12 * 6,7,8 *' || ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && contains('06 07 08', env.MONTH))
if: github.event.schedule == '0 */6 * 6,7,8 *' || ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && contains('06 07 08', env.MONTH))
uses: Platane/snk/svg-only@v3
with:
github_user_name: ${{ github.repository_owner }}
Expand All @@ -51,7 +54,7 @@ jobs:
# autumn theme
- name: generate github-contribution-grid-snake.svg
if: github.event.schedule == '0 */12 * 9,10,11 *' || ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && contains('09 10 11', env.MONTH))
if: github.event.schedule == '0 */6 * 9,10,11 *' || ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && contains('09 10 11', env.MONTH))
uses: Platane/snk/svg-only@v3
with:
github_user_name: ${{ github.repository_owner }}
Expand Down

0 comments on commit 70e0ab7

Please sign in to comment.