Skip to content

Commit

Permalink
Use github.pull_request.head.sha in ci init if the event is a PR (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicyap authored May 6, 2024
1 parent 59d65d5 commit 44c959b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/utils/ci-init/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ runs:
--dagster-cloud-yaml-path=${{ inputs.dagster_cloud_yaml_path }}
--deployment=${{ inputs.deployment }}
--status-url=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
--git-url=${{ github.server_url }}/${{ github.repository }}/tree/${{ github.sha }}
--commit-hash=${{ github.sha }}
--git-url=${{ github.server_url }}/${{ github.repository }}/tree/${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
--commit-hash=${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
$LOCATION_NAMES_FLAG
shell: bash

Expand Down

0 comments on commit 44c959b

Please sign in to comment.