Skip to content

Commit df22cb5

Browse files
Update github workflow
1 parent 16d1de4 commit df22cb5

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/build.yml

+12-13
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ env:
66
on:
77
push:
88
branches: ["main"]
9-
pull_request:
10-
branches: ["main"]
119
workflow_dispatch:
1210
schedule:
1311
- cron: "0 0 18-20 6 *"
@@ -16,16 +14,17 @@ jobs:
1614
build:
1715
runs-on: ubuntu-latest
1816
steps:
19-
- uses: actions/checkout@v2
20-
- uses: julia-actions/setup-julia@latest
21-
- run: |
22-
julia main.jl
17+
- name: Github checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Install julia
21+
uses: julia-actions/setup-julia@latest
2322

24-
git config --global user.name 'gael-lopes-da-silva'
25-
git config --global user.email '[email protected]'
23+
- name: Generate README.md
24+
run: julia main.jl
2625

27-
if ! git diff --quiet "README.md"; then
28-
git add "README.md"
29-
git commit -am "automated build"
30-
git push
31-
fi
26+
- name: Commit
27+
uses: stefanzweifel/git-auto-commit-action@v5
28+
with:
29+
commit_message: Automated commit
30+
branch: main

0 commit comments

Comments
 (0)