Skip to content

Commit

Permalink
Use github.head_ref in ci init if the event is a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
vicyap committed Apr 5, 2024
1 parent 7c2f65f commit d273bb7
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 d273bb7

Please sign in to comment.