mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 09:26:43 -06:00
ci: remove unnecessary steps from ephemeral instances action (#71681)
This commit is contained in:
parent
52121b7165
commit
b43bcb812f
25
.github/workflows/ephemeral-instances.yml
vendored
25
.github/workflows/ephemeral-instances.yml
vendored
@ -10,31 +10,6 @@ jobs:
|
|||||||
labels: ubuntu-latest-8-cores
|
labels: ubuntu-latest-8-cores
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- name: Get pull request repo
|
|
||||||
uses: actions/github-script@v6
|
|
||||||
id: get-pull-request-repo
|
|
||||||
with:
|
|
||||||
result-encoding: string
|
|
||||||
script: |
|
|
||||||
if(context.payload.pull_request?.head.ref) {
|
|
||||||
return context.payload.pull_request.head.ref
|
|
||||||
}
|
|
||||||
|
|
||||||
const response = await github.rest.pulls.get({
|
|
||||||
owner: "grafana",
|
|
||||||
repo: "grafana",
|
|
||||||
pull_number: context.payload.issue.number,
|
|
||||||
});
|
|
||||||
|
|
||||||
return response.data.head.ref
|
|
||||||
|
|
||||||
- name: Checkout Grafana
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
repository: grafana/grafana
|
|
||||||
ref: ${{ steps.get-pull-request-repo.outputs.result }}
|
|
||||||
path: grafana
|
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user