Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
fix(ci): Deploy playground only on main Rome repo (#2522)
Browse files Browse the repository at this point in the history
* fix: Deploy playground only on main Rome repo

* Change to trigger deployment

* fix: Trying again to fix workflow

* fix: Trying again

* Again

* Change to trigger workflow

* whoops fix formatting

* again

* again

* Trying to trigger workflow
  • Loading branch information
Nicholas Yang authored May 2, 2022
1 parent 9701749 commit 4ace7e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy_playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
deploy:
if: ${{ !github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
environment: aws
name: Deploy Playground (Preview)
Expand Down Expand Up @@ -41,7 +42,6 @@ jobs:

- name: Publish
uses: jakejarvis/s3-sync-action@master
if: github.repository_owner == 'rome'
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -57,20 +57,20 @@ jobs:
echo "::set-output name=url::$url"
- name: Get the PR number
if: github.event_name == 'pull_request' && github.repository_owner == 'rome'
if: github.event_name == 'pull_request'
id: pr-number
uses: kkak10/pr-number-action@v1.3

- name: Find Previous Comment
if: github.event_name == 'pull_request' && github.repository_owner == 'rome'
if: github.event_name == 'pull_request'
uses: peter-evans/find-comment@v1.3.0
id: previous-comment
with:
issue-number: ${{ steps.pr-number.outputs.pr }}
body-includes: Playground for commit

- name: Update existing comment
if: github.event_name == 'pull_request' && steps.previous-comment.outputs.comment-id && github.repository_owner == 'rome'
if: github.event_name == 'pull_request' && steps.previous-comment.outputs.comment-id
uses: peter-evans/create-or-update-comment@v1.4.5
continue-on-error: true
with:
Expand All @@ -80,7 +80,7 @@ jobs:
edit-mode: replace

- name: Write a new comment
if: github.event_name == 'pull_request' && !steps.previous-comment.outputs.comment-id && github.repository_owner == 'rome'
if: github.event_name == 'pull_request' && !steps.previous-comment.outputs.comment-id
uses: peter-evans/create-or-update-comment@v1.4.5
continue-on-error: true
with:
Expand Down
1 change: 1 addition & 0 deletions website/playground/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function App() {
},
[],
);

const [loadingState, setLoadingState] = useState(LoadingState.Loading);
const playgroundState = usePlaygroundState();
const { width } = useWindowSize();
Expand Down

0 comments on commit 4ace7e4

Please sign in to comment.