Skip to content

Commit

Permalink
GitHub Actions (more) cleanup
Browse files Browse the repository at this point in the history
- reset to `origin/master` to avoid pushing changes we're testing on the
  `scheduled.yml` job
- more closely match `tests.yml` and `scheduled.yml`
  • Loading branch information
MikeMcQuaid committed Aug 18, 2020
1 parent 14b625d commit 58d0493
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ jobs:

- name: Generate site
run: |
git checkout -b master
ln -s $(brew --repo) brew
bundle exec rake yard build
- name: Commit changes
run: |
git reset origin/master
if ! git diff --no-patch --exit-code HEAD -- docs; then
git add docs
git commit -m "docs: updates from Homebrew/brew" docs
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
- name: Set up Git repository
uses: actions/checkout@main

- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Set up Ruby
uses: actions/setup-ruby@main
with:
Expand All @@ -22,5 +26,5 @@ jobs:
- name: Generate site
run: |
git clone --depth=1 https://github.com/Homebrew/brew
ln -s $(brew --repo) brew
bundle exec rake yard build

0 comments on commit 58d0493

Please sign in to comment.