Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/create_destroy_test_vm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ jobs:
We will notify you when the VM is ready.

- name: Get checkout commit ref and repo
env:
merge_commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
head_ref: ${{ github.event.pull_request.head.ref }}
target_repo: ${{ github.repository }}
pr_repo: ${{ github.event.pull_request.head.repo.full_name }}
run: |

# for context read this https://github.com/Arelle/Arelle/pull/938/files#r1377926250
merge_commit_sha=${{ github.event.pull_request.merge_commit_sha }}
head_ref=${{ github.event.pull_request.head.ref }}
target_repo=${{ github.repository }}
pr_repo=${{ github.event.pull_request.head.repo.full_name }}

CHECKOUT_COMMIT_REF=$([ "$merge_commit_sha" != "" ] && \
echo "$merge_commit_sha" || echo "$head_ref")
Expand Down