Skip to content

Commit 1533756

Browse files
authored
modify docs (#73)
1 parent be2df04 commit 1533756

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,24 @@ The following fields are required to run the Create Branch action:
5959
Setup the action in your workflow:
6060

6161
```yml
62+
# v6 (latest)
6263
steps:
63-
- uses: neondatabase/create-branch-action@v5
64+
- uses: neondatabase/create-branch-action@v6
6465
id: create-branch
6566
with:
6667
project_id: your_neon_project_id
6768
branch_name: actions_reusable
68-
role: neondb_owner
69+
username: neondb_owner
70+
api_key: ${{ secrets.NEON_API_KEY }}
71+
72+
# v5
73+
steps:
74+
- uses: neondatabase/create-branch-action@v6
75+
id: create-branch
76+
with:
77+
project_id: your_neon_project_id
78+
branch_name: actions_reusable
79+
username: neondb_owner
6980
api_key: ${{ secrets.NEON_API_KEY }}
7081
```
7182
@@ -83,7 +94,7 @@ projects, which are `neondb` and `neondb_owner`, respectively.
8394

8495
```yml
8596
steps:
86-
- uses: neondatabase/create-branch-action@v5
97+
- uses: neondatabase/create-branch-action@v6
8798
id: create-branch
8899
with:
89100
project_id: ${{ vars.NEON_PROJECT_ID }}
@@ -128,10 +139,10 @@ on:
128139
workflow_dispatch:
129140

130141
jobs:
131-
Create-Neon-Branch:
142+
create-neon-branch:
132143
runs-on: ubuntu-24.04
133144
steps:
134-
- uses: neondatabase/create-branch-action@v5
145+
- uses: neondatabase/create-branch-action@v6
135146
id: create-branch
136147
with:
137148
project_id: ${{ vars.NEON_PROJECT_ID }}

0 commit comments

Comments
 (0)