From 37e305bd5ae1bcbdd8ce13bd3d67c9e75da697e0 Mon Sep 17 00:00:00 2001 From: Todd Treece Date: Mon, 23 Sep 2024 23:10:29 -0400 Subject: [PATCH] add ref --- .github/workflows/pr-integration-tests.yml | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/pr-integration-tests.yml b/.github/workflows/pr-integration-tests.yml index 1de1b06..4b28c15 100644 --- a/.github/workflows/pr-integration-tests.yml +++ b/.github/workflows/pr-integration-tests.yml @@ -19,6 +19,31 @@ jobs: id-token: write contents: read steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref || github.ref }} + - name: "Create check" + uses: actions/github-script@v6 + env: + parameter_url: '${{ github.event.workflow.run_url }}' + with: + script: | + await github.rest.checks.create({ + owner: context.repo.owner, + repo: context.repo.repo, + head_sha: context.sha, + name: "grafana-integration-tests", + status: "in_progress", + details_url: process.env.parameter_url, + output: { + title: "Grafana Integration Tests", + }, + }); + - name: Checkout grafana + uses: actions/checkout@v4 + with: + repository: grafana/grafana - name: Checkout grafana uses: actions/checkout@v4 with: