Skip to content

Commit

Permalink
manual-e2e-run -- cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jablonnc committed Oct 27, 2023
1 parent 31a9a1f commit 8831aee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/actions/frontend/runtime/magic_url/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ runs:
# This bucket file location is static and editing it will break the Magic URL. This pushes the entire directory which includes the bundle and remote types if applicable
run: |
aws s3 sync deploy/dist s3://apps.dev.jupiterone.io/static/manual-deploy/${{ github.event.repository.name }}@${{ inputs.migration_number }}/PR-${{ github.event.number }}/
- name: get_branch_of_pr
id: get_branch_of_pr
uses: xt0rted/pull-request-comment-branch@v2
- name: show_magic_url_in_pr
uses: Sibz/github-status-action@v1
with:
authToken: ${{ inputs.github_token }}
state: 'success'
uses: myrotvorets/[email protected]
with:
sha: ${{ steps.get_branch_of_pr.outputs.head_sha }}
token: ${{ inputs.github_token }}
status: success
context: 'Magic URL'
description: "Use the 'Details' link to view this PR in dev"
target_url: https://apps.dev.jupiterone.io${{ inputs.magic_url_route }}?magic2=%7B%22${{ github.event.repository.name }}%40${{ inputs.migration_number }}%22:%22PR-${{ github.event.pull_request.number }}%22%7D
sha: ${{github.event.pull_request.head.sha || github.sha}}
target_url: https://apps.dev.jupiterone.io${{ inputs.magic_url_route }}?magic2=%7B%22${{ github.event.repository.name }}%40${{ inputs.migration_number }}%22:%22PR-${{ github.event.pull_request.number }}%22%7D
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ This action takes the following secrets:
#### Usage

```yaml
# Triggered by adding a comment to a PR
on:
issue_comment:
types: [created]

jobs:
e2e_run:
# check if the comments come from pull request and contains '/run-e2e-test'
# Check if the comments come from pull request and contains '/run-e2e-test'
if: github.event.issue.pull_request && contains(github.event.comment.body, '/run-e2e-tests')
uses: jupiterone/.github/.github/workflows/frontend_runtime_application_manual_e2e_run.yml@v#
secrets:
Expand Down

0 comments on commit 8831aee

Please sign in to comment.