generated from steve02081504/empty
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.85 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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: [email protected]
author-name: Taromati2
commit-message: 'files update~'