-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2065 from OfficeDev/main
[Admin] Publish
- Loading branch information
Showing
41 changed files
with
219 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: autogen-docs | ||
run-name: Automatically run GenerateDocs | ||
on: | ||
schedule: | ||
- cron: '45 10 * * TUE' | ||
- cron: '45 10 * * THU' | ||
jobs: | ||
autogen-docs: | ||
runs-on: windows-latest | ||
permissions: | ||
contents: write | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./generate-docs | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Make the script file executable | ||
run: | | ||
echo "Making script file executable" | ||
chmod +x ./GenerateDocs.sh | ||
- name: Set up node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
- name: Run GenerateDocs script | ||
run: | | ||
echo "Generating docs" | ||
./GenerateDocs.sh -b DT+ | ||
- name: Undo chmod | ||
run: | | ||
echo "Undoing script file chmod" | ||
chmod -x ./GenerateDocs.sh | ||
- name: Add any changes | ||
run: | | ||
echo "Determining if there are any changes" | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git checkout -b autogen-docs | ||
git add ../. | ||
- name: Run git status | ||
run: | | ||
{ | ||
echo 'git_status<<EOF' | ||
git status | ||
echo EOF | ||
} >> "$GITHUB_OUTPUT" | ||
id: run_git_status | ||
- name: Commit and push changes if any | ||
if: ${{ !contains(steps.run_git_status.outputs.git_status, 'nothing to commit, working tree clean') }} | ||
run: | | ||
echo "Committing and pushing changes to autogen-docs branch" | ||
git commit -m "Automatically generated docs" | ||
git push --set-upstream origin autogen-docs | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.