Skip to content

CI

CI #116

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# 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:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup Lua/LuaJIT
# You may pin to the exact commit or the version.
# uses: xpol/setup-lua@84f642e19a1adbad98b74f9e69ab82d1e6b95e3e
uses: xpol/setup-lua@v0.3
with:
# Optional: The target platform (e.g. -A Win32 | x64).
platform: ubuntu,# optional
- name: get data
run: |
curl -O http://bot.kcwiki.moe/luatable/shinkai-ships.lua
curl -O http://bot.kcwiki.moe/luatable/shinkai-items.lua
rm zhikongzhi.txt
# Runs a set of commands using the runners shell
- name: Run lua
run: lua zhikongjisuan.lua
- name: check
run: ls -l
- name: push
uses: actions-go/push@v1
with:
commit-files: zhikongzhi.txt