bartbot / sweep

Sweep: AI-powered Junior Developer for small features and bug fixes.
https://sweep.dev
GNU Affero General Public License v3.0
0 stars 0 forks source link

Update GitHub Actions to Use Environment Files #68

Open sweep-ai[bot] opened 7 months ago

sweep-ai[bot] commented 7 months ago

PR Feedback (click)

Changes include:

  1. A new utility script github_actions_transition.py in the sweepai/utils/ directory. This script contains a function update_workflow_file(file_path) that updates a given GitHub Actions workflow file to replace deprecated commands with the new method of writing to the $GITHUB_ENV and $GITHUB_OUTPUT files.
  2. Modifications in sweepai/api.py to call the update_workflow_file function for each GitHub Actions workflow file before creating a pull request.
  3. Modifications in sweepai/handlers/on_ticket.py to include a recommendation in the sandbox execution message to use the github_actions_transition.py script if the GitHub Actions failure is due to the use of deprecated commands.

Summary of Changes

sweep-ai[bot] commented 7 months ago

Rollback Files For Sweep