Skip to content

Commit 241b1c3

Browse files
Use bigger timeout before push PR (#31)
1 parent 1647b05 commit 241b1c3

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/upd-xna-client.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -175,21 +175,10 @@ jobs:
175175
# Push changes
176176
git push --force origin ${{ env.UPDATE_BRANCH_NAME }}-${{ steps.download.outputs.tag_name }}
177177
178-
# Open a PR
179-
foreach ($timemout_attempt in 1..10)
180-
{
181-
# This timeout is for the remote server to index received content
182-
timeout /t 10 > nul
178+
# This timeout is for the remote server to index received content
179+
timeout /t 100 > nul
183180
184-
try
185-
{
186-
gh pr create -B main -H ${{ env.UPDATE_BRANCH_NAME }}-${{ steps.download.outputs.tag_name }} --title '${{ env.PR_TITLE }} ${{ steps.download.outputs.tag_name }}' --body '${{ env.PR_BODY }}'
187-
break
188-
}
189-
catch
190-
{
191-
echo "Server haven't indexed the content yet. Attempting to create a PR again..."
192-
}
193-
}
181+
# Open a PR
182+
gh pr create -B main -H ${{ env.UPDATE_BRANCH_NAME }}-${{ steps.download.outputs.tag_name }} --title '${{ env.PR_TITLE }} ${{ steps.download.outputs.tag_name }}' --body '${{ env.PR_BODY }}'
194183
}
195184
}

0 commit comments

Comments
 (0)