File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
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 : ' 00 20 * * TUE'
5
6
- cron : ' 45 10 * * TUE'
6
7
- cron : ' 45 10 * * THU'
7
8
jobs :
@@ -32,11 +33,25 @@ jobs:
32
33
run : |
33
34
echo "Undoing script file chmod"
34
35
chmod -x ./GenerateDocs.sh
35
- - name : Add any changes
36
+ - name : Get list of remote branches
36
37
run : |
37
- echo "Determining if there are any changes "
38
+ echo "Getting list that includes remote branches "
38
39
git config user.name github-actions
39
40
git config user.email [email protected]
41
+ {
42
+ echo 'git_branch_a<<EOF'
43
+ git branch -a
44
+ echo EOF
45
+ } >> "$GITHUB_OUTPUT"
46
+ id : run_git_branch_a
47
+ - name : Delete autogen-docs if it exists
48
+ if : ${{ contains(steps.run_git_branch_a.outputs.git_branch_a, 'remotes/origin/autogen-docs') }}
49
+ run : |
50
+ echo "Deleting remote autogen-docs branch"
51
+ git push origin --delete autogen-docs
52
+ - name : Add any changes
53
+ run : |
54
+ echo "Determining if there are any changes"
40
55
git checkout -b autogen-docs
41
56
git add ../.
42
57
- name : Run git status
You can’t perform that action at this time.
0 commit comments