Skip to content

Commit

Permalink
extra input
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniBodor committed Jun 18, 2024
1 parent 42e01d2 commit c2c4fbd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ on:
caller_branch:
required: true
type: string
remote:
required: true
type: boolean

jobs:
build:
Expand All @@ -46,11 +49,11 @@ jobs:
username: wbaccinelli
password: ${{ secrets.GITHUB_TOKEN }}
- name: Conditionally add specific branch of eitprocessing
if: github.event_name == 'workflow_call'
if: inputs.remote == true
run: poetry add git+https://github.com/EIT-ALIVE/eitprocessing.git#${{ inputs.caller_branch }}
- name: Run Tests in Container
run: >
echo "action triggered by: ${{github.event_name}}";
run: |
echo "remote input: ${{inputs.remote}}";
docker run
--rm
-v $GITHUB_WORKSPACE:/ci
Expand All @@ -64,7 +67,7 @@ jobs:
python -m build'
lint:
if: github.event.pull_request.draft == false && github.event_name != 'workflow_call'
if: github.event.pull_request.draft == false && inputs.remote != true
name: Linting build
runs-on: ubuntu-latest
strategy:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/remote_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
caller_branch:
required: true
type: string
remote:
required: true
type: boolean

jobs:
build:
Expand All @@ -23,7 +26,7 @@ jobs:
repository: EIT-ALIVE/eit_dash # needs to be made explicit to avoid the remote repo being used
- name: Verify Repository Structure # echo debugging info in case things go haywire
run: |
echo "action triggered by: ${{github.event_name}}";
echo "remote input: ${{inputs.remote}}";
echo "Current directory: $(pwd)"
ls -al
echo "Contents of $GITHUB_WORKSPACE:"
Expand Down

0 comments on commit c2c4fbd

Please sign in to comment.