Skip to content

Commit

Permalink
Only install
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHerreros committed Feb 1, 2024
1 parent 9d7a308 commit d63264e
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,29 @@ jobs:
source ./miniconda/etc/profile.d/conda.sh
conda update -n base -c defaults conda -y
# Cloning Flexutils
- name: Cloning Flexutils-Toolkit
working-directory: ${{ github.workspace }}
run: git clone https://github.com/I2PC/Flexutils-Toolkit.git:testRepo
# # Cloning Flexutils
# - name: Cloning Flexutils-Toolkit
# working-directory: ${{ github.workspace }}
# run: git clone https://github.com/I2PC/Flexutils-Toolkit.git:testRepo

# Checkout Flexutils-Toolkit to Pull Request branch if exists, by default stays in devel
- name: Conditionally checkout Flexutils-Toolkit to ${{ github.head_ref }}
working-directory: ${{ github.workspace }}/testRepo
env:
BRANCH_NAME: ${{ github.head_ref }}
run: |
if [ $(git ls-remote --heads https://github.com/I2PC/Flexutils-Toolkit.git $BRANCH_NAME | wc -l) -eq 1 ]; then
git checkout $BRANCH_NAME
fi
# # Checkout Flexutils-Toolkit to Pull Request branch if exists, by default stays in devel
# - name: Conditionally checkout Flexutils-Toolkit to ${{ github.head_ref }}
# uses: actions/checkout@v4
# working-directory: ${{ github.workspace }}
# env:
# BRANCH_NAME: ${{ github.head_ref }}
# run: |
# if [ $(git ls-remote --heads https://github.com/I2PC/Flexutils-Toolkit.git $BRANCH_NAME | wc -l) -eq 1 ]; then
# git checkout $BRANCH_NAME
# fi

# Installing Flexutils-Toolkit
- name: Install Flexutils and show log
working-directory: ${{ github.workspace }}/testRepo
- name: Install Flexutils ${{ github.head_ref }} branch and show log
working-directory: ${{ github.workspace }}
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
run: |
eval "$(${{ github.workspace }}/../miniconda/bin/conda shell.bash hook)"
eval "$(${{ github.workspace }}/..miniconda/bin/conda shell.bash hook)"
conda activate
bash ./install.sh

0 comments on commit d63264e

Please sign in to comment.