Skip to content

CI

CI #12

Workflow file for this run

name: CI
on:
schedule:
- cron: "0 0 8 * *"
workflow_dispatch:
jobs:
worker:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: Setup Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: stable
- name: Setup Neovim
uses: MunifTanjim/setup-neovim-action@v1
with:
tag: nightly
- name: Generate Color Schemes
run: bash ./workflow.sh
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore(build): auto-generate color data"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
# needed because actions is not using a terminal, so nvim not run properly
- name: Create issue to run worker
uses: dacbd/[email protected]
with:
token: ${{ secrets.GH_TOKEN }}
owner: CWood-sdf
repo: pineapple
title: "chore: rerun worker"