Skip to content

Commit 3dcd696

Browse files
authored
Merge pull request #171 from JupiterOne/revert-170-fix-magic-url-commit-sha
Revert "[NO-TICKET] fix magic url commit sha"
2 parents f8bf406 + 85696ba commit 3dcd696

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • .github/actions/frontend/runtime/magic_url

.github/actions/frontend/runtime/magic_url/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ runs:
2828
echo "github_token=${{ inputs.github_token }}"
2929
echo "migration=${{ inputs.migration_number }}"
3030
echo "magic_url_route=${{ inputs.magic_url_route }}"
31-
echo "github.sha=${{ github.sha }}"
32-
echo "github.event.pull_request.head.sha=${{ github.event.pull_request.head.sha }}"
3331
- name: configure_aws_credentials
3432
uses: aws-actions/configure-aws-credentials@v4
3533
with:
@@ -43,10 +41,13 @@ runs:
4341
# 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
4442
run: |
4543
aws s3 sync deploy/dist s3://apps.dev.jupiterone.io/static/manual-deploy/${{ github.event.repository.name }}@${{ inputs.migration_number }}/PR-${{ inputs.pr_number }}/
44+
- name: get_branch_of_pr
45+
id: get_branch_of_pr
46+
uses: xt0rted/pull-request-comment-branch@v2
4647
- name: show_magic_url_in_pr
4748
uses: myrotvorets/set-commit-status-action@v2.0.0
4849
with:
49-
sha: ${{ github.sha }}
50+
sha: ${{ steps.get_branch_of_pr.outputs.head_sha }}
5051
token: ${{ inputs.github_token }}
5152
status: success
5253
context: 'Magic URL'

0 commit comments

Comments
 (0)