yaml linting
This commit is contained in:
parent
e9e55f05b1
commit
3ff8f07b65
1 changed files with 0 additions and 16 deletions
16
.github/workflows/on-release-published.yml
vendored
16
.github/workflows/on-release-published.yml
vendored
|
|
@ -106,19 +106,3 @@ jobs:
|
|||
with:
|
||||
github-token: ${{ env.GITHUB_API_KEY }}
|
||||
number: ${{ steps.find-pull-request.outputs.number }}
|
||||
# - name: Fetch PRs from GitHub's API
|
||||
# # yamllint disable rule:line-length
|
||||
# run: |
|
||||
# # Step 1. Fetch PRs from GitHub's API that're open and have a particular head ref indicative of a helm release PR
|
||||
# # API docs - https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests
|
||||
# # NOTE: ${github.ref_name:1} will slice off the "v" prefix from the tag
|
||||
|
||||
# curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $${GITHUB_API_KEY }" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/grafana/oncall/pulls?head=grafana:helm-release/$${GITHUB_REF_NAME}:1}&state=open" > prs.json
|
||||
# cat prs.json
|
||||
|
||||
# # Step 2. Extract the PR number from the first PR in the list to be able to pass that to the next API call
|
||||
# cat prs.json | jq -r ".[0].number" > pr_number.txt
|
||||
# cat pr_number.txt
|
||||
# # Step 3. Merge the PR (https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#merge-a-pull-request)
|
||||
# cat pr_number.txt | xargs -r -I{pull_number} curl -L -X PUT -H "Accept: application/vnd.github+json" -H "Authorization: Bearer $${{ env.GITHUB_API_KEY }}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/grafana/oncall/pulls/{pull_number}/merge"
|
||||
# # yamllint enable rule:line-length
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue