Skip to content

Commit

Permalink
run when failed like it needs
Browse files Browse the repository at this point in the history
  • Loading branch information
NotM32 committed Dec 14, 2024
1 parent d6e4eb4 commit 7ee54a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/update-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ jobs:
- name: Check Flake
id: flake-check
run: |
output=$(nix flake check)
output=$(nix flake check 2&>1)
echo "log=$output" >> $GITHUB_OUTPUT
maybe_repair:
runs-on: ubuntu-latest
needs: check
if: ${{ always() }}
permissions:
contents: read
contents: write
pull-requests: write
name: Check for deprecated/renamed options in flake check and submit a pull request to fix if found
steps:
Expand All @@ -37,10 +38,11 @@ jobs:
uses: DukeLuo/gpt-runner@v1.0.0
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
CHECK_LOG: ${{ needs.check.outputs.check-log }}
with:
cmd: |
promptr --model "gpt-4o" \
--prompt "Please make fixes to any of the following issues with the flake check output included: [option renamed, option deprecated, option removed]. \n Flake Output: \n ${{ needs.jobs.check.outputs.check-log }}"
--prompt "Please make fixes to any of the following issues with the flake check output included: [option renamed, option deprecated, option removed]. \n Flake Output: $CHECK_LOG\n"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7ee54a8

Please sign in to comment.