Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
birdup000 authored Jan 17, 2025
1 parent b7d44ae commit 54c7f7b
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,23 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Docker Compose
- name: Set up Docker
uses: docker/setup-buildx-action@v2

- name: Install Docker Compose
run: |
docker-compose up --build
# Download the latest docker-compose release
sudo curl -L "https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# Make the binary executable
sudo chmod +x /usr/local/bin/docker-compose
# Verify installation
docker-compose --version
- name: Run repo-to-text
- name: Build and run Docker containers
run: |
docker-compose run repo-to-text . --output-dir /home/user/output
docker-compose up --build
- name: Copy output to workspace
- name: Copy output files
run: |
cp /home/user/output/* ./output/
Expand Down

0 comments on commit 54c7f7b

Please sign in to comment.