Skip to content

Commit

Permalink
fixing workflows 9
Browse files Browse the repository at this point in the history
  • Loading branch information
DraKen0009 committed Dec 6, 2024
1 parent 564ee30 commit df66b07
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/test-plugin-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,31 @@ jobs:
runs-on: ubuntu-latest

steps:
# Checkout the DraKen0009/care repository
- name: Checkout DraKen0009/care repository
# Checkout the ohcnetwork/care repository
- name: Checkout ohcnetwork/care repository
uses: actions/checkout@v3
with:
repository: ohcnetwork/care

# Update the plug_config.py file with the required content
- name: Update plug_config.py
run: |
branch_name=$(echo "$GITHUB_REF_NAME")
echo "from plugs.manager import PlugManager
branch_name=${GITHUB_REF_NAME}
cat > ./plug_config.py <<EOL
from plugs.manager import PlugManager
from plugs.plug import Plug

camera_plugin = Plug(
name=\"camera\",
package_name=\"git+https://github.com/ohcnetwork/care_camera_asset.git\",
version=\"@$branch_name\",
name="camera",
package_name="git+https://github.com/ohcnetwork/care_camera_asset.git",
version="@${branch_name}",
configs={},
)

plugs = [camera_plugin]

manager = PlugManager(plugs)" > ./plug_config.py
manager = PlugManager(plugs)
EOL

# Build and start Docker containers
- name: Build and start Docker containers
Expand Down

0 comments on commit df66b07

Please sign in to comment.