Skip to content

Commit e9de973

Browse files
author
github-actions
committed
Merge branch 'main' into live
2 parents 7e6b866 + 9c38b75 commit e9de973

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/auto-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: auto-publish
22
run-name: Automatically publish documentation
33
on:
44
schedule:
5-
- cron: '10 20 * * FRI'
5+
- cron: '15 22 * * TUE'
6+
- cron: '15 22 * * THU'
67
jobs:
78
auto-publish:
89
runs-on: ubuntu-latest

.github/workflows/autogen-docs.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,25 @@ jobs:
3232
run: |
3333
echo "Undoing script file chmod"
3434
chmod -x ./GenerateDocs.sh
35-
- name: Add any changes
35+
- name: Get list of remote branches
3636
run: |
37-
echo "Determining if there are any changes"
37+
echo "Getting list that includes remote branches"
3838
git config user.name github-actions
3939
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"
4054
git checkout -b autogen-docs
4155
git add ../.
4256
- name: Run git status

0 commit comments

Comments
 (0)