Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
415544869c | ||
|
|
667293445b | ||
|
|
e64deeba68 |
@@ -119,7 +119,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# do custom parsing of your code / date to derive a branch from
|
# do custom parsing of your code / date to derive a branch from
|
||||||
PR_BRANCH_FROM=release-v$(cat VERSION)
|
PR_BRANCH_FROM=release-v$(cat VERSION)
|
||||||
export "PULL_REQUEST_FROM_BRANCH=${PR_BRANCH_FROM}" >> $GITHUB_ENV
|
echo "PULL_REQUEST_FROM_BRANCH=${PR_BRANCH_FROM}" >> $GITHUB_ENV
|
||||||
- name: pull-request-action
|
- name: pull-request-action
|
||||||
uses: vsoch/pull-request-action@master
|
uses: vsoch/pull-request-action@master
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ def find_default_branch():
|
|||||||
response = requests.get(REPO_URL)
|
response = requests.get(REPO_URL)
|
||||||
|
|
||||||
# Case 1: 404 might need a token
|
# Case 1: 404 might need a token
|
||||||
if response.status_code == 404:
|
if response.status_code in [401, 404]:
|
||||||
response = requests.get(REPO_URL, headers=HEADERS)
|
response = requests.get(REPO_URL, headers=HEADERS)
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
abort_if_fail(response, "Unable to retrieve default branch")
|
abort_if_fail(response, "Unable to retrieve default branch")
|
||||||
|
|||||||
Reference in New Issue
Block a user