-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 912 Bytes
/
Copy pathbuild.yml
File metadata and controls
29 lines (27 loc) · 912 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
name: Build README
on:
push:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
#uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
# https://github.com/orgs/community/discussions/147696
uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0
with:
ruby-version: '2.7'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Update README
run: ruby build_readme.rb
- name: Commit and push if README has changed
run: |-
git diff
git config --global user.email "readme-bot@unexist.dev"
git config --global user.name "README-bot"
git diff --quiet || (git add README.adoc && git commit -m "Updated README")
git push