Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Improve deploy deploy requests GitHub Action #269

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/devops/deploy-deploy-request-action.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ on:

jobs:
deploy_deploy_request:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Deploy a deploy request
uses: planetscale/deploy-deploy-request-action@v1
uses: planetscale/deploy-deploy-request-action@v4
with:
org_name: bmorrison-ps
database_name: recipes_db
branch_name: dev
env:
PLANETSCALE_SERVICE_TOKEN_ID: ${{ secrets.PLANETSCALE_SERVICE_TOKEN_ID }}
PLANETSCALE_SERVICE_TOKEN: ${{ secrets.PLANETSCALE_SERVICE_TOKEN }}
Expand All @@ -52,8 +52,8 @@ jobs:

- `org_name` - The name of the PlanetScale organization.
- `database_name` - The name of the database to create the branch on.
- `number` - The number of the deploy request.

**Optional**

- `number` - The number of the deploy request to deploy. Defaults to the latest deploy request.
- `wait` - If set to `true`, this action will wait for the deploy request to merge before exiting.