Skip to content

Commit

Permalink
v1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyorlando authored Jun 5, 2024
2 parents 507f28d + 3ff8f07 commit dda8e54
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/on-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dda8e54

Please sign in to comment.