Skip to content

Commit

Permalink
try with pr
Browse files Browse the repository at this point in the history
  • Loading branch information
marcadetd committed Jun 14, 2024
1 parent 2be4194 commit 5d200ec
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/Build-Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 5d200ec

Please sign in to comment.