Skip to content

Commit b96aedd

Browse files
Workflow - try to check status
1 parent 5e57df3 commit b96aedd

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/autogen-docs.yml

Lines changed: 8 additions & 3 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: '27 18 * * FRI'
7+
- cron: '33 19 * * FRI'
88
jobs:
99
autogen-docs:
1010
runs-on: windows-latest
@@ -33,13 +33,18 @@ jobs:
3333
run: |
3434
echo "Undoing script file chmod"
3535
chmod -x ./GenerateDocs.sh
36-
- name: Commit and push changes
36+
- name: Determine changes
3737
run: |
38-
echo "Committing and pushing changes to autogen-docs branch"
38+
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+
echo "GIT_STATUS=git status" >> "$GITHUB_OUTPUT"
44+
- name: Commit and push changes if any
45+
if: ${{ ! contains(steps.determine-changes.outputs.GIT_STATUS, 'nothing to commit, working tree clean') }}
46+
run: |
47+
echo "Committing and pushing changes to autogen-docs branch"
4348
git commit -m "Automatically generated docs"
4449
git push --set-upstream origin autogen-docs
4550

0 commit comments

Comments
 (0)