Skip to content

Commit

Permalink
change to newer versions for autocheckcombos workflow, temporarily mo…
Browse files Browse the repository at this point in the history
…dify to only do a range of 5 to speed up execution time for testing
  • Loading branch information
sealldeveloper committed Oct 17, 2024
1 parent 3611fc2 commit a18ad0a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/autocheckcombos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -26,8 +26,8 @@ jobs:
- name: Run find-num.py
id: find_num
run: |
python find-num.py --range 255 | tee result.txt
echo "::set-output name=result::$(cat result.txt)"
python find-num.py --range 5 | tee result.txt
echo "result=$(cat result.txt)" >> $GITHUB_OUTPUT
- name: Check for new candidates and existing combinations
id: check_candidates
Expand All @@ -42,14 +42,14 @@ jobs:
done < result.txt
if [ "$NEW_CANDIDATES_FOUND" = true ]; then
echo "::set-output name=new_candidates::true"
echo "new_candidates=true" >> $GITHUB_OUTPUT
else
echo "::set-output name=new_candidates::false"
echo "new_candidates=false" >> $GITHUB_OUTPUT
fi
- name: Create Pull Request for New Candidates
if: steps.check_candidates.outputs.new_candidates == 'true'
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: "Add new shorter candidates"
Expand Down

0 comments on commit a18ad0a

Please sign in to comment.