From 3ff8f07b653197346647ca6bcfc120d8557d8507 Mon Sep 17 00:00:00 2001 From: Joey Orlando Date: Wed, 5 Jun 2024 14:24:04 -0400 Subject: [PATCH] yaml linting --- .github/workflows/on-release-published.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/workflows/on-release-published.yml b/.github/workflows/on-release-published.yml index e5f71b4e54..72a7c2e9e6 100644 --- a/.github/workflows/on-release-published.yml +++ b/.github/workflows/on-release-published.yml @@ -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