Skip to content

Commit d7868b2

Browse files
committed
Attempt to fix broken github action
1 parent 546ac2b commit d7868b2

File tree

2 files changed

+29
-14
lines changed

2 files changed

+29
-14
lines changed

.github/workflows/pages.yml

+28-13
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,41 @@
11
name: Update with the latest colorschemes
22
on:
33
workflow_dispatch:
4-
schedule:
5-
- cron: "0 0 * * 0" # https://crontab.guru/every-week
6-
push:
7-
branches: [ "main" ]
4+
# schedule:
5+
# - cron: "0 0 * * 0" # https://crontab.guru/every-week
6+
# push:
7+
# branches: [ "main" ]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Fetch the repository code
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
15+
16+
- uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: "3.3"
19+
20+
- name: Check Vim version
21+
run: vim --version
1522

16-
- name: Setup Vim and Ruby
17-
run: sudo apt install -y ruby vim
18-
1923
- name: Build
20-
run: bash build.sh
24+
run: |
25+
bash build.sh
2126
22-
- name: Deploy
23-
uses: peaceiris/actions-gh-pages@v3
27+
- name: "Commit the changes, if any"
28+
uses: "stefanzweifel/git-auto-commit-action@be823a7e51f116fecebc222b8307716921375992" # 5.0.1
2429
with:
25-
github_token: ${{ secrets.BOT_ACCESS_TOKEN }}
26-
publish_dir: ./out
30+
commit_message: "Update with the latest tinted-theming colorschemes"
31+
branch: ${{ inputs.ref }}
32+
commit_user_name: "tinted-theming-bot"
33+
commit_user_email: "[email protected]"
34+
commit_author: "tinted-theming-bot <[email protected]>"
35+
36+
37+
# - name: Deploy
38+
# uses: peaceiris/actions-gh-pages@v3
39+
# with:
40+
# github_token: ${{ secrets.BOT_ACCESS_TOKEN }}
41+
# publish_dir: ./out

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ main() {
5151
erb template.erb > out/index.html
5252
}
5353

54-
main
54+
main

0 commit comments

Comments
 (0)