-
Notifications
You must be signed in to change notification settings - Fork 13
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
3bfd731
commit ba758d4
Showing
1 changed file
with
4 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 |
---|---|---|
|
@@ -51,24 +51,10 @@ jobs: | |
run: | | ||
git config push.autoSetupRemote true | ||
- name: Create new branch for docs | ||
- name: Create new branch name for docs | ||
run: | | ||
BRANCH_NAME="docs/update-$(date +'%Y%m%d%H%M%S')" | ||
echo "branch_name=$BRANCH_NAME" >> $GITHUB_ENV | ||
git checkout -b $BRANCH_NAME | ||
- name: Commit changes | ||
run: | | ||
git add docs/ docs_markdown/ | ||
git commit -m "docs: Generated full documentation" || echo "No changes to commit" | ||
- name: Push changes to new branch | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
echo "Pushing to branch: $BRANCH_NAME" | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git | ||
git push --set-upstream origin $BRANCH_NAME | ||
- name: Create Pull Request using GitHub Actions bot | ||
uses: peter-evans/create-pull-request@v7 | ||
|
@@ -77,10 +63,12 @@ jobs: | |
docs/ | ||
docs_markdown/ | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
committer: TelnyxIntegrations <[email protected]> | ||
base: main | ||
branch: ${{ env.branch_name }} | ||
delete-branch: true | ||
title: '[docs] Update generated HTML and Markdown documentation' | ||
base: main | ||
commit-message: "docs: Generated full documentation" | ||
body: "This PR updates the full documentation generated by Fastlane using Jazzy and SourceDocs." | ||
labels: "documentation, auto-generated" | ||
draft: true |