-
Notifications
You must be signed in to change notification settings - Fork 905
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
d5a4d00
commit bfbb5c6
Showing
1 changed file
with
5 additions
and
9 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 |
---|---|---|
|
@@ -20,9 +20,6 @@ on: | |
jobs: | ||
mkdocs: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
env: | ||
MKDOCS_INSIDERS_SSH_KEY_EXISTS: ${{ secrets.MKDOCS_INSIDERS_SSH_KEY != '' }} | ||
steps: | ||
|
@@ -39,7 +36,7 @@ jobs: | |
version="${{ (inputs.plan != '' && fromJson(inputs.plan).announcement_tag) || inputs.ref }}" | ||
# if version is missing, exit with error | ||
if [[ -z "$version" ]]; then | ||
echo "Can't build versioned docs without a version!" | ||
echo "Can't build docs without a version." | ||
exit 1 | ||
fi | ||
|
@@ -97,15 +94,17 @@ jobs: | |
run: | | ||
branch_name="${{ env.branch_name }}" | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "github-actions-bot@example.com" | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected].com" | ||
git checkout -b $branch_name | ||
git add uv | ||
git commit -m "Update uv documentation for $version" | ||
- name: "Create Pull Request" | ||
working-directory: astral-docs | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ASTRAL_DOCS_PAT }} | ||
run: | | ||
version="${{ env.version }}" | ||
display_name="${{ env.display_name }}" | ||
|
@@ -123,9 +122,6 @@ jobs: | |
# push the branch to GitHub | ||
git push origin $branch_name | ||
# authenticate with GitHub | ||
echo ${{ secrets.ASTRAL_DOCS_PAT}} | gh auth login --with-token | ||
# create the PR | ||
gh pr create --base main --head $branch_name \ | ||
--title "$pull_request_title" \ | ||
|