Skip to content

Commit

Permalink
Rework sha logic for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chanhosuh committed Jul 27, 2023
1 parent a0b8007 commit 271e823
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Download comparison results
uses: actions/download-artifact@v3
with:
name: test-data-${{ github.event.workflow_run.head_sha }}
name: test-data-${{ github.event.workflow_run.base_sha }}
path: test/data/

- name: End-to-end tests
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Download comparison results
uses: actions/download-artifact@v3
with:
name: test-data-${{ github.event.workflow_run.head_sha }}
name: test-data-${{ github.event.workflow_run.base_sha }}
path: test/data/

- name: End-to-end tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI_generate_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
- name: Upload test data
uses: actions/upload-artifact@v3
with:
name: test-data-${{ github.sha }}
name: test-data-${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
path: test/data/

0 comments on commit 271e823

Please sign in to comment.