generated from jonico/pscale-workflow-helper-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 967 Bytes
/
create-database.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: 01 - Create Database
on:
workflow_dispatch
env:
pscale_base_directory: .pscale
jobs:
create-database:
name: "Create database - click here"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Create database - please click on displayed link to authenticate
timeout-minutes: 3
env:
PLANETSCALE_SERVICE_TOKEN_NAME: ${{secrets.PLANETSCALE_SERVICE_TOKEN_NAME}}
ORG_NAME: ${{secrets.ORG_NAME}}
DB_NAME: ${{secrets.DB_NAME}}
GITHUB_USER: ${{github.actor}}
working-directory: ${{env.pscale_base_directory}}/cli-helper-scripts/
run: ./create-database.sh
- name: Please set MY_DB_URL with instructions from step above
run: |
echo "Have a look at the end of the output of the previous step to find your one-time link with instructions how to set the database repo secret ..."
sleep 10