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 6b8a6aa commit 1959695
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Generate Repository Text with Docker Compose
name: Generate Repository Text

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
workflow_dispatch: # Allows manual triggering

jobs:
build:
Expand All @@ -15,23 +15,23 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Docker
uses: docker/setup-buildx-action@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'

- name: Install Docker Compose
- name: Install dependencies
run: |
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
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
python -m pip install --upgrade pip
pip install hatchling pathspec argparse PyYAML
- name: Set working directory and build Docker containers
- name: Install repo-to-text
run: |
ls -a
docker-compose up --build
pip install -e .
- name: Copy output files
- name: Run repo-to-text
run: |
cp /home/user/output/* ./output/
repo-to-text . --output-dir ./output
- name: Upload output as artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 1959695

Please sign in to comment.