Skip to content

Commit dd69373

Browse files
committed
fix
1 parent 3c3afd3 commit dd69373

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

.github/workflows/review_app.yml

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -158,34 +158,7 @@ jobs:
158158
pnpm -F railway deploy-review-app \
159159
--env="pr-${{ steps.set_pr_number.outputs.pr_number }}" \
160160
--commit="${{ steps.set_effective_sha.outputs.sha }}" \
161-
--db-url="${{ steps.create_neon_branch.outputs.db_url }}"
162-
163-
destroy:
164-
name: Destroy Review App
165-
if: |
166-
github.event.issue.pull_request &&
167-
github.event.comment.body == '/destroy'
168-
runs-on: ubuntu-latest
169-
env:
170-
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
171-
steps:
172-
- name: Set PR Number
173-
id: set_pr_number
174-
run: |
175-
echo "pr_number=${{ github.event.issue.number }}" >> $GITHUB_OUTPUT
176-
177-
- uses: actions/checkout@v4
178-
179-
- uses: ./.github/actions/setup
180-
with:
181-
node-version: 22
182-
183-
- name: Destroy Railway environment
184-
env:
185-
RAILWAY_PROJECT_ID: ${{ secrets.RAILWAY_PROJECT_ID }}
186-
run: |
187-
pnpm -F railway destroy-review-app \
188-
--env="pr-${{ steps.set_pr_number.outputs.pr_number }}"
161+
--db-url="${{ steps.create_neon_branch.outputs.db_url }}"
189162
190163
# TODO: check if this posts a new comment for each commit to an open PR if this updates the comment
191164
# TODO: if this creates a new comment for each commit, we need to update if so it only posts a

0 commit comments

Comments
 (0)