Skip to content

Commit

Permalink
ci: updated to automatically set pullRequest config
Browse files Browse the repository at this point in the history
  • Loading branch information
scolastico committed May 28, 2024
1 parent e5c8e0a commit 99c0d3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
- name: Updating config.json for not-th.re public
run: >
echo "{\"baseURL\": \"https://api.not-th.re/\", \"terms\":
\"https://scolasti.co/go/privacy\"}" > client/config.json
\"https://scolasti.co/go/privacy\", \"pullRequest\":
\"https://github.com/not-three/main/pull/${{ github.event.number }}\"}" > client/config.json
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
Expand Down
3 changes: 1 addition & 2 deletions public/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"baseURL": "/api/",
"terms": "https://example.com/",
"pullRequest": "https://example.com/"
"terms": "https://example.com/"
}

0 comments on commit 99c0d3b

Please sign in to comment.