Skip to content

Commit d631034

Browse files
committed
chore: Add nightly sync for CFA orgs
1 parent 974ca88 commit d631034

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/sync-cfa.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Run CFA fetch
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *" # Run nightly at midnight
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
if: github.repository_owner == "github"
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Ruby 2.6
16+
uses: actions/setup-ruby@v1
17+
with:
18+
ruby-version: 2.6.x
19+
- name: Setup Dependencies
20+
run: |
21+
gem install bundler
22+
bundle install --jobs 4 --retry 3
23+
- name: Fetch latest CFA changes
24+
run: bundle exec script/fetch-cfa
25+
- name: Alphabetize changes
26+
run: bundle exec script/alphabetize
27+
- name: Push back changes
28+
run: |
29+
git config user.name github-actions
30+
git config user.email [email protected]
31+
git add .
32+
git commit -m "generated" || true
33+
git push

0 commit comments

Comments
 (0)