Skip to content

Commit 0d60e5f

Browse files
Workflow - add step for git status
1 parent 2f7152a commit 0d60e5f

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/autogen-docs.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
schedule:
55
- cron: '45 10 * * TUE'
66
- cron: '45 10 * * THU'
7-
- cron: '48 15 * * MON'
7+
- cron: '32 16 * * MON'
88
jobs:
99
autogen-docs:
1010
runs-on: windows-latest
@@ -33,18 +33,23 @@ jobs:
3333
run: |
3434
echo "Undoing script file chmod"
3535
chmod -x ./GenerateDocs.sh
36-
- name: Determine changes
36+
- name: Add any changes
3737
run: |
3838
echo "Determining if there are any changes"
3939
git config user.name github-actions
4040
git config user.email [email protected]
4141
git checkout -b autogen-docs
4242
git add ../.
43-
git status
44-
echo "git_status=$(git status)" >> "$GITHUB_OUTPUT"
45-
id: determine_changes
43+
- name: Run git status
44+
run: |
45+
{
46+
echo 'git_status<<EOF'
47+
git status
48+
echo EOF
49+
} >> "$GITHUB_OUTPUT"
50+
id: run_git_status
4651
- name: Commit and push changes if any
47-
if: ${{ !contains(steps.determine_changes.outputs.git_status, 'nothing to commit, working tree clean') }}
52+
if: ${{ !contains(steps.run_git_status.outputs.git_status, 'nothing to commit, working tree clean') }}
4853
run: |
4954
echo "Committing and pushing changes to autogen-docs branch"
5055
git commit -m "Automatically generated docs"

0 commit comments

Comments
 (0)