-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This mirrors what Homebrew/formulae.brew.sh does and allows the removal of the push job from Homebrew/brew.
- Loading branch information
1 parent
eb26b56
commit 456ed45
Showing
3 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Scheduled regeneration | ||
on: | ||
schedule: | ||
# Once every other hour | ||
- cron: '30 */2 * * *' | ||
jobs: | ||
generate: | ||
if: startsWith( github.repository, 'Homebrew/' ) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@master | ||
|
||
- name: Set up Ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.6' | ||
|
||
- name: Install RubyGems | ||
run: | | ||
gem install bundler -v "~>1" | ||
bundle install --jobs 4 --retry 3 | ||
- name: Generate site | ||
run: | | ||
git clone --depth=1 https://github.com/Homebrew/brew | ||
bundle exec rake yard build | ||
# commit and push generated files | ||
git add docs | ||
if ! git diff --no-patch --exit-code HEAD -- docs; then | ||
git commit -m "docs: updates from Homebrew/brew" docs | ||
git pull --rebase origin master | ||
git push | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -249,4 +249,4 @@ DEPENDENCIES | |
yard | ||
|
||
BUNDLED WITH | ||
2.0.1 | ||
1.17.2 |