Skip to content

Commit

Permalink
more clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
nikellepetrillo committed Dec 20, 2024
1 parent ccbaa68 commit 024cbdf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test_illumina_genotyping_array.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,24 @@ jobs:
WORKSPACE_NAMESPACE: ${{ env.WORKSPACE_NAMESPACE }}
USER: ${{ env.USER }}

- name: Determine Github Commit Hash
id: determine_github_commit_hash
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "Using github.sha for manually triggered workflow."
echo "commit_hash=${{ github.sha }}" >> $GITHUB_ENV
elif [ "${{ github.event_name }}" == "pull_request" ]; then
echo "Using github.event.pull_request.head.sha for PR-triggered workflow."
echo "commit_hash=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
else
echo "Unsupported event type: ${{ github.event_name }}"
exit 1
fi
- name: Print Determined Commit Hash
run: |
echo "Determined commit hash: ${{ env.commit_hash }}"
- name: Fetch Github Commit Hash
id: fetch_github_commit_hash
run: |
Expand Down

0 comments on commit 024cbdf

Please sign in to comment.