Skip to content

Commit 0c65b5b

Browse files
committed
git: Fix repo url and hash that gets sent to the ImHex-Patterns repo
1 parent d5db3b2 commit 0c65b5b

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,13 @@ jobs:
8888
needs: tests
8989
uses: WerWolv/ImHex-Patterns/.github/workflows/tests.yml@master
9090
with:
91-
pattern_language_git_repo: ${{ github.server_url }}/${{ github.repository }}
92-
pattern_language_git_hash: ${{ github.sha }}
91+
pattern_language_git_repo: ${{ github.server_url }}/${{
92+
github.event_name == 'pull_request'
93+
&& github.event.pull_request.head.repo.full_name
94+
|| github.repository
95+
}}
96+
pattern_language_git_hash: ${{
97+
github.event_name == 'pull_request'
98+
&& github.event.pull_request.head.sha
99+
|| github.sha
100+
}}

0 commit comments

Comments
 (0)