Skip to content

Implement unified docs for Lightning Qubit and Kokkos #2119

Implement unified docs for Lightning Qubit and Kokkos

Implement unified docs for Lightning Qubit and Kokkos #2119

name: Update dev version automatically
on:
pull_request:
jobs:
update-dev-version:
name: Update version for development branches
runs-on: ubuntu-latest
steps:
- name: Checkout PennyLane-Lightning master
uses: actions/checkout@v3
with:
ref: master
path: main
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.9'
- name: Checkout PennyLane-Lightning PR
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.head_ref }}
path: pr
- name: Run version update script
run: >
python3 pr/.github/workflows/dev_version_script.py
--pr-path "./pr" --master-path "./main"
- name: Commit and push changes
if:
run: |
cd ./pr
if [[ -n $(git status -s) ]]; then
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git config --global user.name "Dev version update bot"
git add .
git commit -m 'Auto update version'
git push
fi