-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27e7bcb
commit 380e2ae
Showing
1 changed file
with
17 additions
and
16 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 |
---|---|---|
|
@@ -29,22 +29,23 @@ jobs: | |
git diff | ||
cd docs/build | ||
python build.py | ||
git diff --quiet && DIFF=false || DIFF=true | ||
echo $DIFF | ||
echo "diff=$DIFF" >> $GITHUB_OUTPUT | ||
- name: Commit and push changes | ||
if: steps.generate.outputs.diff == 'true' | ||
run: | | ||
echo $GITHUB_OUTPUT | ||
git checkout -b update-docs | ||
git add docs/api-reference | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
git commit -m "Update documentation" | ||
git push -u origin update-docs | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
git diff | ||
# git diff --quiet && DIFF=false || DIFF=true | ||
# echo $DIFF | ||
# echo "diff=$DIFF" >> $GITHUB_OUTPUT | ||
|
||
# - name: Commit and push changes | ||
# if: steps.generate.outputs.diff == 'true' | ||
# run: | | ||
# echo $GITHUB_OUTPUT | ||
# git checkout -b update-docs | ||
# git add docs/api-reference | ||
# git config --global user.name 'github-actions' | ||
# git config --global user.email '[email protected]' | ||
# git commit -m "Update documentation" | ||
# git push -u origin update-docs | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Create Pull Request | ||
# uses: peter-evans/create-pull-request@v6 | ||
|