diff --git a/.github/workflows/download-server-artifact.yml b/.github/workflows/download-server-artifact.yml new file mode 100644 index 000000000..9052ce017 --- /dev/null +++ b/.github/workflows/download-server-artifact.yml @@ -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