We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de8794a commit 9814c0fCopy full SHA for 9814c0f
.github/workflows/try-login.yml
@@ -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