Skip to content

Commit 1e0a04f

Browse files
debug
1 parent cc268e5 commit 1e0a04f

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/e2e_core.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ jobs:
5858
runs-on: ${{inputs.runner_tag}}
5959

6060
steps:
61+
- name: Dump GitHub context
62+
env:
63+
GITHUB_CONTEXT: ${{ toJson(github) }}
64+
run: echo "$GITHUB_CONTEXT"
65+
- name: Dump job context
66+
env:
67+
JOB_CONTEXT: ${{ toJson(job) }}
68+
run: |
69+
echo "$JOB_CONTEXT"
70+
echo context.issue.number
71+
6172
# Workspace on self-hosted runners is not cleaned automatically.
6273
# We have to delete the files created outside of using actions.
6374
- name: Cleanup self-hosted workspace
@@ -66,10 +77,6 @@ jobs:
6677
ls -la ./
6778
rm -rf ./* || true
6879
69-
- uses: xt0rted/pull-request-comment-branch@d97294d304604fa98a2600a6e2f916a84b596dc7 # v2.0.0
70-
id: comment-branch
71-
if: ${{ always() && inputs.trigger != 'schedule' }}
72-
7380
- name: Add comment to PR
7481
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
7582
if: ${{ always() && inputs.trigger != 'schedule' }}
@@ -90,7 +97,15 @@ jobs:
9097
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
9198
with:
9299
path: ur-repo
93-
ref: ${{ steps.comment-branch.outputs.head_ref }}
100+
101+
# On issue_comment trigger (for PRs) we need to fetch special ref for
102+
# proper PR's merge commit. Note, this ref may be absent if the PR is already merged.
103+
- name: Fetch PR's merge commit
104+
if: ${{ inputs.trigger != 'schedule' }}
105+
working-directory: ${{github.workspace}}/ur-repo
106+
run: |
107+
git fetch -- https://github.com/${{ github.repository }} +refs/pull/XXX/*:refs/remotes/origin/pr/XXX/*
108+
git checkout origin/pr/XXX/merge
94109
95110
- name: Checkout SYCL
96111
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

0 commit comments

Comments
 (0)