Skip to content

Commit ab2c19c

Browse files
committed
cicd: Fix upload log from opencga-enterprise. #TASK-7809
1 parent b579d0c commit ab2c19c

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/scripts/get-xetabase-branch.sh

100644100755
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ get_xetabase_branch() {
1010

1111
# If the branch begins with 'TASK' and exists in the opencga-enterprise repository, I return it
1212
if [[ $current_branch == TASK* ]]; then
13-
if [ "$(git ls-remote "https://$ZETTA_REPO_ACCESS_TOKEN@github.com/zetta-genomics/opencga-enterprise.git" "$current_branch" )" ] ; then
13+
REPO_URI=
14+
if [ -z "$ZETTA_REPO_ACCESS_TOKEN" ]; then
15+
REPO_URI="git@github.com:zetta-genomics/opencga-enterprise.git"
16+
else
17+
REPO_URI="https://$ZETTA_REPO_ACCESS_TOKEN@github.com/zetta-genomics/opencga-enterprise.git"
18+
fi
19+
if [ "$(git ls-remote "$REPO_URI" "$current_branch" )" ] ; then
1420
echo "$current_branch";
1521
return 0;
1622
fi

.github/workflows/test-xetabase-workflow.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,14 @@ jobs:
109109
if-no-files-found: error
110110
- name: Upload log
111111
uses: actions/upload-artifact@v4
112+
## Skip cancelled()
113+
## https://docs.github.com/en/actions/learn-github-actions/expressions#cancelled
114+
if: success() || failure()
112115
with:
113116
name: build-log
114-
path: ./opencga-enterprise/build.log
117+
path: |
118+
./opencga-enterprise/build.log
119+
./opencga-enterprise/*.log.gz
115120
if-no-files-found: error
116121
- name: Log summary
117122
run: |

0 commit comments

Comments
 (0)