diff --git a/actions/utils/ci-init/action.yml b/actions/utils/ci-init/action.yml index 4f6c043f..50ab4b40 100644 --- a/actions/utils/ci-init/action.yml +++ b/actions/utils/ci-init/action.yml @@ -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