Skip to content

CI

CI #430

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:
schedule:
- 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:
- name: disable auto crlf
uses: steve02081504/disable-autocrlf@v1
with:
fuck-auto-CRLF: true
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: get Header_File_constructor
run: |
aria2c https://github.com/ELC-lang/Header_File_constructor/releases/latest/download/Header_File_constructor.out
chmod +x ./Header_File_constructor.out
- name: clone ELC
run: git clone https://github.com/ELC-lang/ELC --depth 1
- name: run Header_File_constructor
run: ./Header_File_constructor.out ./ELC/parts/header_file/files/elc/ ./files --full --skip-simple-block-comment --relocate https://github.com/ELC-lang/ELC/tree/master/parts/header_file/files/elc
- name: remove build files
run: rm -rf ./ELC ./Header_File_constructor.out
- name: add all
run: git add -A
- name: Push changes
# You may pin to the exact commit or the version.
# uses: actions-go/push@7ad7ce209f2a038e7bca929b7a4c92026363f856
uses: actions-go/push@v1
with:
token: ${{ secrets.BOT_TOKEN }}
author-email: taromati2@foxmail.com
author-name: Taromati2
commit-message: 'files update~'