-
Notifications
You must be signed in to change notification settings - Fork 981
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add nightly sync for CFA orgs
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 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,35 @@ | ||
name: Run CFA fetch | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # Run nightly at midnight | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
if: github.repository_owner == "github" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby 2.6 | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6.x | ||
- name: Setup Dependencies | ||
run: | | ||
gem install bundler | ||
bundle install --jobs 4 --retry 3 | ||
- name: Fetch latest CFA changes | ||
run: bundle exec script/fetch-cfa | ||
- name: Ensure that all are still orgs | ||
run: bundle exec script/ensure-orgs | ||
- name: Alphabetize changes | ||
run: bundle exec script/alphabetize | ||
- name: Push back changes | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "generated" || true | ||
git push |