Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/download-server-artifact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Generate api bindings

on:
workflow_dispatch:

permissions:
contents: read

jobs:
download:
name: Download internal.json from bitwarden/server

runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Download internal.json artifact
uses: bitwarden/gh-actions/download-artifacts@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repo: bitwarden/server
branch: main
artifacts: (internal|identity).json
path: artifacts/
name_is_regexp: true

- name: List downloaded files
run: |
echo "Downloaded files:"
find artifacts/ -type f -name "*.json" | head -10
if [ -f "artifacts/internal.json" ]; then
echo "internal.json file size: $(stat -c%s artifacts/internal.json) bytes"
fi