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 024cbdf commit 8bc1623
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/test_illumina_genotyping_array.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,30 +122,32 @@ jobs:
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "Using github.sha for manually triggered workflow."
echo "commit_hash=${{ github.sha }}" >> $GITHUB_ENV
echo "GITHUB_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
echo "GITHUB_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: |
echo "GITHUB_COMMIT_HASH=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
echo "GitHub Commit Hash: ${{ github.event.pull_request.head.sha }}"
echo "Determined commit hash: ${{ env.GITHUB_COMMIT_HASH }}"
#echo "GITHUB_COMMIT_HASH=${{ env.github_commit_hash }}" >> $GITHUB_ENV
- name: Debug Context
run: |
echo "github.sha: ${{ github.sha }}"
echo "github.event.pull_request.head.sha: ${{ github.event.pull_request.head.sha }}"
echo "github.event.pull_request.base.sha: ${{ github.event.pull_request.base.sha }}"
#- name: Fetch Github Commit Hash
# id: fetch_github_commit_hash
# run: |
# echo "GITHUB_COMMIT_HASH=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
# echo "GitHub Commit Hash: ${{ github.event.pull_request.head.sha }}"
#
#- name: Debug Context
# run: |
# echo "github.sha: ${{ github.sha }}"
# echo "github.event.pull_request.head.sha: ${{ github.event.pull_request.head.sha }}"
# echo "github.event.pull_request.base.sha: ${{ github.event.pull_request.base.sha }}"

- name: Fetch Dockstore Workflow CommitID
run: |
Expand Down

0 comments on commit 8bc1623

Please sign in to comment.