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