Skip to content

Commit 9814c0f

Browse files
update
1 parent de8794a commit 9814c0f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/try-login.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
workflow_dispatch:
6+
pull_request:
7+
8+
jobs:
9+
bytebase-ci:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Login Bytebase
14+
id: bytebase-login
15+
uses: bytebase/login-action@main
16+
with:
17+
bytebase-url: ${{ secrets.BYTEBASE_URL }}
18+
service-key: ${{ secrets.BYTEBASE_SERVICE_KEY }}
19+
service-secret: ${{ secrets.BYTEBASE_SERVICE_SECRET }}
20+
- name: List projects
21+
run: |
22+
curl "${{ steps.bytebase-login.outputs.api_url }}/projects" \
23+
-H 'Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}' \
24+
-H 'Content-Type: application/json; charset=utf-8'

0 commit comments

Comments
 (0)