-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
17 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 |
---|---|---|
|
@@ -25,15 +25,11 @@ jobs: | |
build-python-launcher-docs: | ||
runs-on: ubuntu-22.04 | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout ${{ github.event.repository.name }} | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ${{ github.event.repository.name }} | ||
fetch-depth: 0 | ||
|
||
- name: Checkout riseclipse-temporary | ||
uses: actions/checkout@v4 | ||
|
@@ -65,13 +61,25 @@ jobs: | |
git config --global user.email [email protected] | ||
git config --global user.name "GitHub Actions" | ||
- name: Commit and push to GitHub | ||
- name: Create and switch to branch new_documentation | ||
run: | | ||
cd riseclipse-temporary | ||
git branch new_documentation | ||
git switch new_documentation | ||
git push --set-upstream origin new_documentation | ||
- name: Commit new documentation | ||
run: | | ||
cd riseclipse-temporary | ||
git add --all | ||
git commit -m "New version of documentation of python-launcher" | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/riseclipse/riseclipse-temporary | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
base: master | ||
branch: new_documentation | ||
labels: automated pr | ||
title: '[action] New documentation built' | ||
path: riseclipse-temporary | ||
|