File tree Expand file tree Collapse file tree 1 file changed +1
-28
lines changed
Expand file tree Collapse file tree 1 file changed +1
-28
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments