-
Notifications
You must be signed in to change notification settings - Fork 1k
35 lines (31 loc) · 891 Bytes
/
sync-cfa.yml
File metadata and controls
35 lines (31 loc) · 891 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
30
31
32
33
34
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 github-actions@github.com
git add .
git commit -m "generated" || true
git push