Skip to content

Commit 431f16f

Browse files
workflow - update schedule for testing
1 parent 9c38b75 commit 431f16f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/autogen-docs.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: autogen-docs
22
run-name: Automatically run GenerateDocs
33
on:
44
schedule:
5+
- cron: '40 23 * * TUE'
56
- cron: '45 10 * * TUE'
67
- cron: '45 10 * * THU'
78
jobs:
@@ -32,19 +33,19 @@ jobs:
3233
run: |
3334
echo "Undoing script file chmod"
3435
chmod -x ./GenerateDocs.sh
35-
- name: Get list of remote branches
36+
- name: Get whether autogen-docs branch exists
3637
run: |
37-
echo "Getting list that includes remote branches"
38+
echo "Getting whether autogen-docs branch exists"
3839
git config user.name github-actions
3940
git config user.email [email protected]
4041
{
41-
echo 'git_branch_a<<EOF'
42-
git branch -a
42+
echo 'git_ls_remote_origin_autogen_docs<<EOF'
43+
git ls-remote origin autogen-docs
4344
echo EOF
4445
} >> "$GITHUB_OUTPUT"
45-
id: run_git_branch_a
46+
id: run_git_ls_remote_origin_autogen_docs
4647
- name: Delete autogen-docs if it exists
47-
if: ${{ contains(steps.run_git_branch_a.outputs.git_branch_a, 'remotes/origin/autogen-docs') }}
48+
if: ${{ contains(steps.run_git_ls_remote_origin_autogen_docs.outputs.git_ls_remote_origin_autogen_docs, '/autogen-docs') }}
4849
run: |
4950
echo "Deleting remote autogen-docs branch"
5051
git push origin --delete autogen-docs

0 commit comments

Comments
 (0)