Skip to content

Commit d0b38d6

Browse files
fff
1 parent bb52ada commit d0b38d6

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

.github/workflows/try-login.yml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
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'
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+
set -x
23+
curl "${{ steps.bytebase-login.outputs.api_url }}/projects" \
24+
-H 'Authorization: Bearer ${{ steps.bytebase-login.outputs.token }}' \
25+
-H 'Content-Type: application/json; charset=utf-8'

0 commit comments

Comments
 (0)