Skip to content

Commit 5a722fd

Browse files
authored
Scaffold workflow for generating api bindings (#441)
Scaffolds a new workflow for updating API bindings.
1 parent d9ad5e8 commit 5a722fd

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Generate api bindings
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
download:
11+
name: Download internal.json from bitwarden/server
12+
13+
runs-on: ubuntu-24.04
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
19+
- name: Download internal.json artifact
20+
uses: bitwarden/gh-actions/download-artifacts@main
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
repo: bitwarden/server
24+
branch: main
25+
artifacts: (internal|identity).json
26+
path: artifacts/
27+
name_is_regexp: true
28+
29+
- name: List downloaded files
30+
run: |
31+
echo "Downloaded files:"
32+
find artifacts/ -type f -name "*.json" | head -10
33+
if [ -f "artifacts/internal.json" ]; then
34+
echo "internal.json file size: $(stat -c%s artifacts/internal.json) bytes"
35+
fi

0 commit comments

Comments
 (0)