-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (37 loc) · 947 Bytes
/
crystal.yml
File metadata and controls
45 lines (37 loc) · 947 Bytes
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
name: Auto Update CI
on:
schedule:
- cron: "0 0 * * SUN"
push:
branches:
- master
paths:
- 'list.txt'
- 'list2md.cr'
- 'README.ecr'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:nightly-alpine
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Crystal Script
run: crystal list2md.cr
- name: Commit & Push
env:
USER: github-actions[bot]
EMAIL: github-actions[bot]@users.noreply.github.com
run: |
git config --global --add safe.directory /__w/crystal-web-framework-stars/crystal-web-framework-stars
git status
git remote -v
git config user.email $EMAIL
git config user.name $USER
git checkout master
git add README.md list.json
git commit -m "Auto update"
git push