mirror of
https://github.com/grafana/grafana.git
synced 2024-11-23 01:16:31 -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
|
||||
continue-on-error: true
|
||||
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
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user