Skip to content

Commit

Permalink
chore: Add nightly sync for CFA orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Sep 5, 2020
1 parent 974ca88 commit e9864b4
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/sync-cfa.yml
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

0 comments on commit e9864b4

Please sign in to comment.