diff --git a/.github/workflows/comment_trigger_benchmark.yml b/.github/workflows/comment_trigger_benchmark.yml index 78536ceddd..2c836f2b92 100644 --- a/.github/workflows/comment_trigger_benchmark.yml +++ b/.github/workflows/comment_trigger_benchmark.yml @@ -1,5 +1,7 @@ name: Run benchmarks from comment trigger +# https://dev.to/zirkelc/trigger-github-workflow-for-comment-on-pull-request-45l2 + on: issue_comment: types: [created] @@ -23,7 +25,8 @@ jobs: - name: Checkout PR branch uses: actions/checkout@v3 with: - ref: ${{ steps.comment-branch.outputs.head_ref }} + # https://github.com/actions/checkout/issues/331#issuecomment-1438220926 + ref: refs/pull/${{ github.event.issue.number }}/head - name: Setup Node.js 16 uses: actions/setup-node@v3 with: diff --git a/.github/workflows/comment_trigger_example.yml b/.github/workflows/comment_trigger_example.yml index 1a0eeecaaf..b8b0d0d066 100644 --- a/.github/workflows/comment_trigger_example.yml +++ b/.github/workflows/comment_trigger_example.yml @@ -24,10 +24,8 @@ jobs: - name: Checkout PR branch uses: actions/checkout@v3 with: - # ref: ${{ steps.comment-branch.outputs.head_ref }} # https://github.com/actions/checkout/issues/331#issuecomment-1438220926 ref: refs/pull/${{ github.event.issue.number }}/head - - name: Setup Node.js 16 uses: actions/setup-node@v3 with: diff --git a/.github/workflows/comment_trigger_test_itensorgaussianmps.yml b/.github/workflows/comment_trigger_test_itensorgaussianmps.yml index d2bfb5877d..74e26bedc8 100644 --- a/.github/workflows/comment_trigger_test_itensorgaussianmps.yml +++ b/.github/workflows/comment_trigger_test_itensorgaussianmps.yml @@ -1,5 +1,7 @@ name: Run ITensorGaussianMPS tests from comment trigger +# https://dev.to/zirkelc/trigger-github-workflow-for-comment-on-pull-request-45l2 + on: issue_comment: types: [created] @@ -35,7 +37,8 @@ jobs: - name: Checkout PR branch uses: actions/checkout@v3 with: - ref: ${{ steps.comment-branch.outputs.head_ref }} + # https://github.com/actions/checkout/issues/331#issuecomment-1438220926 + ref: refs/pull/${{ github.event.issue.number }}/head - name: Setup Node.js 16 uses: actions/setup-node@v3 with: diff --git a/.github/workflows/comment_trigger_test_itensorglmakie.yml b/.github/workflows/comment_trigger_test_itensorglmakie.yml index 8c006a0df6..167dbf99f0 100644 --- a/.github/workflows/comment_trigger_test_itensorglmakie.yml +++ b/.github/workflows/comment_trigger_test_itensorglmakie.yml @@ -1,5 +1,7 @@ name: Run ITensorGLMakie tests from comment trigger +# https://dev.to/zirkelc/trigger-github-workflow-for-comment-on-pull-request-45l2 + on: issue_comment: types: [created] @@ -35,7 +37,8 @@ jobs: - name: Checkout PR branch uses: actions/checkout@v3 with: - ref: ${{ steps.comment-branch.outputs.head_ref }} + # https://github.com/actions/checkout/issues/331#issuecomment-1438220926 + ref: refs/pull/${{ github.event.issue.number }}/head - name: Setup Node.js 16 uses: actions/setup-node@v3 with: diff --git a/.github/workflows/comment_trigger_test_itensors_mps.yml b/.github/workflows/comment_trigger_test_itensors_mps.yml index 07c4472cd4..977fa9c464 100644 --- a/.github/workflows/comment_trigger_test_itensors_mps.yml +++ b/.github/workflows/comment_trigger_test_itensors_mps.yml @@ -1,5 +1,7 @@ name: Run ITensors mps tests from comment trigger +# https://dev.to/zirkelc/trigger-github-workflow-for-comment-on-pull-request-45l2 + on: issue_comment: types: [created] @@ -35,7 +37,8 @@ jobs: - name: Checkout PR branch uses: actions/checkout@v3 with: - ref: ${{ steps.comment-branch.outputs.head_ref }} + # https://github.com/actions/checkout/issues/331#issuecomment-1438220926 + ref: refs/pull/${{ github.event.issue.number }}/head - name: Setup Node.js 16 uses: actions/setup-node@v3 with: diff --git a/.github/workflows/comment_trigger_test_itensorunicodeplots.yml b/.github/workflows/comment_trigger_test_itensorunicodeplots.yml index bcab71d65a..1a0f5cda7a 100644 --- a/.github/workflows/comment_trigger_test_itensorunicodeplots.yml +++ b/.github/workflows/comment_trigger_test_itensorunicodeplots.yml @@ -1,5 +1,7 @@ name: Run ITensorUnicodePlots tests from comment trigger +# https://dev.to/zirkelc/trigger-github-workflow-for-comment-on-pull-request-45l2 + on: issue_comment: types: [created] @@ -35,7 +37,8 @@ jobs: - name: Checkout PR branch uses: actions/checkout@v3 with: - ref: ${{ steps.comment-branch.outputs.head_ref }} + # https://github.com/actions/checkout/issues/331#issuecomment-1438220926 + ref: refs/pull/${{ github.event.issue.number }}/head - name: Setup Node.js 16 uses: actions/setup-node@v3 with: diff --git a/.github/workflows/comment_trigger_test_itensorvisualization.yml b/.github/workflows/comment_trigger_test_itensorvisualization.yml index 956e60deea..9f09af0ac3 100644 --- a/.github/workflows/comment_trigger_test_itensorvisualization.yml +++ b/.github/workflows/comment_trigger_test_itensorvisualization.yml @@ -1,5 +1,7 @@ name: Run ITensorVisualizationBase tests from comment trigger +# https://dev.to/zirkelc/trigger-github-workflow-for-comment-on-pull-request-45l2 + on: issue_comment: types: [created] @@ -35,7 +37,8 @@ jobs: - name: Checkout PR branch uses: actions/checkout@v3 with: - ref: ${{ steps.comment-branch.outputs.head_ref }} + # https://github.com/actions/checkout/issues/331#issuecomment-1438220926 + ref: refs/pull/${{ github.event.issue.number }}/head - name: Setup Node.js 16 uses: actions/setup-node@v3 with: