Skip to content

Commit

Permalink
Change the search query that identifies the issue to write the data t…
Browse files Browse the repository at this point in the history
…o. Don't wrote anything yet.
  • Loading branch information
spier committed Dec 1, 2023
1 parent be68946 commit cc36c63
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/i18n-consistency-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ jobs:
issue_title="${flags['${{matrix.language}}']}: Content Consistency Issue"
# Get the existing issue ID
existing_issue_id=$(gh issue list -S "is:issue is:open $issue_title" | cut -f1)
existing_issue_id=$(gh issue list -S "is:issue is:open in:title '$issue_title'" | cut -f1)
echo "existing_issue_id: $existing_issue_id"
# Create a new issue or comment on the existing one
if expr "$existing_issue_id" : '^[0-9]*$' >/dev/null; then
gh issue comment "$existing_issue_id" -F issue-full.md -R $GITHUB_REPOSITORY
else
gh issue create -t "$issue_title" -F issue-full.md -R $GITHUB_REPOSITORY -l "Type - Translation"
fi
#if expr "$existing_issue_id" : '^[0-9]*$' >/dev/null; then
# gh issue comment "$existing_issue_id" -F issue-full.md -R $GITHUB_REPOSITORY
#else
# gh issue create -t "$issue_title" -F issue-full.md -R $GITHUB_REPOSITORY -l "Type - Translation"
#fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit cc36c63

Please sign in to comment.