Merge branch 'main' of https://github.com/MyBaBB/MYBABB #8
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 is a basic workflow to help you get started with Actions | |
name: generate snake | |
# Controls when the workflow will run | |
on: | |
schedule: | |
#every 12 hrs | |
- cron: "0 */12 * * *" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: "main" | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Clone repo | |
- uses: actions/checkout@v3 | |
- name: Generate the snake files in "./dist/" | |
uses: Platane/snak@v2 | |
id: snake-gif | |
with: | |
github_user_name: ${{ github.repository_owner }} | |
outputs: | | |
dist/github-contribution-grid-snake.svg | |
dist/github-contribution-grid-snake-dark.svg?palette=github-dark | |
dist/github-contribution-grid-snake.gif?color_snake=orange&color_dots=#bfd6f6,#8dbff,#64a1f4,#4b91f1,#3c7dd9 | |
- name: Show build status | |
run: git status | |
- name: Push new files to the output branch | |
uses: crazy-max/[email protected] | |
with: | |
target_branch: output | |
build_dir: dist | |
commit-message: Update snake animations | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |