Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action debugging #17

Merged
merged 8 commits into from
Jun 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions .github/workflows/run_jcb_basic_testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Add repo url to the environment
run: |
JCB_APP_REPO="https://github.com/${{ github.repository }}"
JCB_APP_REPO="${{ github.repository }}"
echo "JCB_APP_REPO=${JCB_APP_REPO}" >> $GITHUB_ENV

- name: Determine the name of the client branch
Expand Down Expand Up @@ -63,12 +63,16 @@ jobs:
cd jcb_repo
pip install pyyaml
./jcb_client_init.py
echo "JCB_APP_REPO: ${{ github.repository }}"
echo "Currect directory: $(pwd)"
app_path=$(python jcb_client_path.py ${{ github.repository }})
echo "Application path: $app_path"
cd $app_path
git checkout ${{ env.JCB_APP_BRANCH }}

# If all the branches are found then at this point everything should be good since
# jcb_client_init will check out the correct branches. If not then the app branch needs to
# be checked out explicitly.
if [ "${{ env.JCB_BRANCH }}" != "${{ env.JCB_APP_BRANCH }}" ]; then
echo "Checking out branch ${{ env.JCB_APP_BRANCH }} for ${{ env.JCB_APP_REPO }}"
app_path=$(python jcb_client_path.py $JCB_APP_REPO)
cd $app_path
git checkout ${{ env.JCB_APP_BRANCH }}
fi

- name: Install dependencies
run: |
Expand Down
Loading