Skip to content

Commit

Permalink
Start signing internal v3 json
Browse files Browse the repository at this point in the history
Now that the PR on the main brew repo got merged in we're generating
the internal v3 JSON but we're not storing or using it anywhere.
This updates the scheduled generation task to not only store the
resulting JSON but also sign it to allow us to use it as a reference
when building the loader code.
  • Loading branch information
apainintheneck committed Feb 4, 2024
1 parent c1d4bf8 commit 8e4d934
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
HOMEBREW_DEVELOPER: 1

- name: Archive data
run: tar czvf data-core.tar.gz _data/formula/ _data/formula_canonical.json api/formula/ api/formula_tap_migrations.json formula/
run: tar czvf data-core.tar.gz _data/formula/ _data/formula_canonical.json api/formula/ api/formula_tap_migrations.json formula/ api/internal/v3/homebrew-core.json

- uses: actions/upload-artifact@v3
with:
Expand Down
1 change: 1 addition & 0 deletions script/sign-json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
ROOT/"_site/api/cask.json",
ROOT/"_site/api/formula_tap_migrations.json",
ROOT/"_site/api/cask_tap_migrations.json",
ROOT/"_site/api/internal/v3/homebrew-core.json",
].each do |path|
data_string = path.read

Expand Down

0 comments on commit 8e4d934

Please sign in to comment.