File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: autogen-docs
2
2
run-name : Automatically run GenerateDocs
3
3
on :
4
4
schedule :
5
+ - cron : ' 40 23 * * TUE'
5
6
- cron : ' 45 10 * * TUE'
6
7
- cron : ' 45 10 * * THU'
7
8
jobs :
@@ -32,19 +33,19 @@ jobs:
32
33
run : |
33
34
echo "Undoing script file chmod"
34
35
chmod -x ./GenerateDocs.sh
35
- - name : Get list of remote branches
36
+ - name : Get whether autogen-docs branch exists
36
37
run : |
37
- echo "Getting list that includes remote branches "
38
+ echo "Getting whether autogen-docs branch exists "
38
39
git config user.name github-actions
39
40
git config user.email [email protected]
40
41
{
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
43
44
echo EOF
44
45
} >> "$GITHUB_OUTPUT"
45
- id : run_git_branch_a
46
+ id : run_git_ls_remote_origin_autogen_docs
46
47
- 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') }}
48
49
run : |
49
50
echo "Deleting remote autogen-docs branch"
50
51
git push origin --delete autogen-docs
You can’t perform that action at this time.
0 commit comments