Skip to content

Commit

Permalink
Try fix autoclose
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajNyiri committed Dec 17, 2024
1 parent 2589c82 commit f112155
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,7 @@ jobs:
run: |
if [[ "${{ github.event.issue.body }}" == *"cloud password"* ]]; then
echo "contains_invalid_string=true" >> $GITHUB_ENV
else
echo "contains_invalid_string=false" >> $GITHUB_ENV
fi
- name: Close Issue - comment
if: env.contains_invalid_string == 'true'
uses: peter-evans/close-issue@v3
with:
comment: |
This issue was automatically closed because it has a solution under [FAQ](https://github.com/JurajNyiri/HomeAssistant-Tapo-Control?tab=readme-ov-file#troubleshooting--faq) and is a duplicate.
See `I see error 'Invalid cloud password.'`.
Note: This action has been done automatically, owner is notified about this issue and if there is a need he will reopen.
labels: |
Duplicate
autoclose-onvif-rejection:
runs-on: ubuntu-latest
steps:
- name: Check issue description for invalid string
id: check_body
run: |
if [[ "${{ github.event.issue.body }}" == *"sure you have created your 3rd party account via Tapo app"* ]]; then
elif [[ "${{ github.event.issue.body }}" == *"Invalid authentication data. Make sure you have created your 3rd party account via Tapo app."* ]]; then
echo "contains_invalid_string=true" >> $GITHUB_ENV
else
echo "contains_invalid_string=false" >> $GITHUB_ENV
Expand All @@ -51,9 +30,7 @@ jobs:
uses: peter-evans/close-issue@v3
with:
comment: |
This issue was automatically closed because it has a solution under [FAQ](https://github.com/JurajNyiri/HomeAssistant-Tapo-Control?tab=readme-ov-file#troubleshooting--faq) and is a duplicate.
See `I see error 'Invalid authentication data. Make sure you have created your 3rd party account via Tapo app. You can also test if these credentials work via rtsp stream, for example VLC using link rtsp://username:password@IP Address:554/stream1' when I enter correct password`.
This issue was automatically closed because it matches a known [FAQ](https://github.com/JurajNyiri/HomeAssistant-Tapo-Control?tab=readme-ov-file#troubleshooting--faq) solution.
Note: This action has been done automatically, owner is notified about this issue and if there is a need he will reopen.
labels: |
Expand Down

0 comments on commit f112155

Please sign in to comment.