-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(repo): skip console preview if not needed (#4016)
*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
- Loading branch information
1 parent
bfbd81d
commit 3721e51
Showing
3 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ jobs: | |
last-version: ${{ fromJson(steps.changelog.outputs.data).lastVersion }} | ||
changelog: ${{ fromJson(steps.changelog.outputs.data).changelog }} | ||
vscode-wing-changed: ${{ fromJson(steps.turbo-diff.outputs.data)['vscode-wing#compile'].changes }} | ||
console-changed: ${{ fromJson(steps.turbo-diff.outputs.data)['@wingconsole/app#preview:fly'].changes }} | ||
e2e-changed: ${{ fromJson(steps.turbo-diff.outputs.data)['hangar#test'].changes }} | ||
bench-changed: ${{ fromJson(steps.turbo-diff.outputs.data)['hangar#bench'].changes }} | ||
steps: | ||
|
@@ -272,12 +273,10 @@ jobs: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | ||
FLY_VERSION: "0.1.80" | ||
APP_NAME: wing-console-pr-${{github.event.number}} | ||
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && !startsWith(github.head_ref, 'mergify/merge-queue/') }} | ||
if: ${{ needs.build.outputs.console-changed == 'true' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && !startsWith(github.head_ref, 'mergify/merge-queue/') }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Download Dist Artifacts | ||
uses: actions/download-artifact@v3 | ||
|
@@ -288,7 +287,7 @@ jobs: | |
- name: Install flyctl | ||
uses: superfly/flyctl-actions/[email protected] | ||
with: | ||
version: ${{env.FLY_VERSION}} | ||
version: ${{ env.FLY_VERSION }} | ||
|
||
- name: Deploy to Fly.io | ||
id: deploy-fly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,7 @@ const turboArgs = [ | |
"test", | ||
"package", | ||
"bench", | ||
"preview:fly", | ||
"--dry-run=json", | ||
]; | ||
|
||
|