Skip to content

Commit

Permalink
split
Browse files Browse the repository at this point in the history
  • Loading branch information
Konboi committed Jul 5, 2023
1 parent 6b83f15 commit 59721fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ jobs:
run: |
echo "GITHUB_REF_NAME"
echo ${GITHUB_REF_NAME}
echo "GITHUB_HEAD_REF"
echo ${GITHUB_HEAD_REF}
echo "GITHUB_BASE_REF"
echo ${GITHUB_BASE_REF}
echo "show-ref"
git show-ref | grep '^'$(git rev-parse HEAD)
git show-ref | grep '^'$(git rev-parse HEAD) || true
- name: Build
run: |
pipenv run build
Expand Down
3 changes: 2 additions & 1 deletion launchable/commands/record/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def _get_branch_name(repo_dist: str) -> str:
# AWS CodeBuild
if os.environ.get("CODEBUILD_BUILD_ID"):
if os.environ.get("CODEBUILD_WEBHOOK_HEAD_REF", "") != "":
return os.environ.get("CODEBUILD_WEBHOOK_HEAD_REF", "")
# refs/head/<branch name>
return os.environ.get("CODEBUILD_WEBHOOK_HEAD_REF", "").split("/")[-1]

return branch_name

0 comments on commit 59721fc

Please sign in to comment.