From 997d5a254c14f6d6826c16107b1144f2c692bbf7 Mon Sep 17 00:00:00 2001 From: runora95 Date: Thu, 9 Oct 2025 11:25:15 -0400 Subject: [PATCH 1/5] Workflow to bump pennylane rc version --- .github/workflows/bump-release-rc.yml | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/bump-release-rc.yml diff --git a/.github/workflows/bump-release-rc.yml b/.github/workflows/bump-release-rc.yml new file mode 100644 index 0000000..c43b4da --- /dev/null +++ b/.github/workflows/bump-release-rc.yml @@ -0,0 +1,38 @@ +name: Update pennylane rc branch version in plug-in test matrix +on: + workflow_dispatch: + inputs: + rc_version: + description: 'RC version (e.g., v0.43.0-rc0)' + required: true +jobs: + bump-rc-version: + runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools jinja2 + + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Bump rc version in workflow files + run: | + git checkout -b bump-rc-version-${{ inputs.rc_version }} + sed -i -E 's/v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/v0.9.0-rc0/' 'workflow-template-release-candidate.yml' + cat workflow-template-release-candidate.yml | grep pennylane.git + python compile.py + sed -i -E 's/v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/v0.9.0-rc0/' '.github/workflows/lightning-latest-rc.yml' + + - name: Commit and push changes + run: | + git config --global user.name "github-actions-bump[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git add .github/workflows/ . + git commit -m "Bump rc version in workflow files" + git push --set-upstream origin bump-rc-version-${{ inputs.rc_version }} + gh pr create --title "Bump rc version in workflow files" --body "This PR updates the rc version in the workflow files to ${{ inputs.rc_version }}." --label "automerge" --assignee "runoragbaire" + gh pr merge --auto From 3b1da8013db770e547d45aaf1dbd4097977d74ac Mon Sep 17 00:00:00 2001 From: runora95 Date: Thu, 9 Oct 2025 11:29:09 -0400 Subject: [PATCH 2/5] fix input description --- .github/workflows/bump-release-rc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump-release-rc.yml b/.github/workflows/bump-release-rc.yml index c43b4da..019561a 100644 --- a/.github/workflows/bump-release-rc.yml +++ b/.github/workflows/bump-release-rc.yml @@ -3,7 +3,7 @@ on: workflow_dispatch: inputs: rc_version: - description: 'RC version (e.g., v0.43.0-rc0)' + description: 'RC version (e.g., 0.43.0)' required: true jobs: bump-rc-version: From 1898c6bffe24e6d85a59d5145fe2a71ae22869b2 Mon Sep 17 00:00:00 2001 From: runora95 Date: Thu, 9 Oct 2025 11:32:28 -0400 Subject: [PATCH 3/5] cleanup --- .github/workflows/bump-release-rc.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/bump-release-rc.yml b/.github/workflows/bump-release-rc.yml index 019561a..15e00e9 100644 --- a/.github/workflows/bump-release-rc.yml +++ b/.github/workflows/bump-release-rc.yml @@ -23,7 +23,6 @@ jobs: run: | git checkout -b bump-rc-version-${{ inputs.rc_version }} sed -i -E 's/v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/v0.9.0-rc0/' 'workflow-template-release-candidate.yml' - cat workflow-template-release-candidate.yml | grep pennylane.git python compile.py sed -i -E 's/v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/v0.9.0-rc0/' '.github/workflows/lightning-latest-rc.yml' From 7e43eaf27d5cf5ad1ae07c699eef8d9dbd2f7d7b Mon Sep 17 00:00:00 2001 From: runora95 Date: Tue, 14 Oct 2025 09:29:38 -0400 Subject: [PATCH 4/5] rmv name --- .github/workflows/bump-release-rc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump-release-rc.yml b/.github/workflows/bump-release-rc.yml index 15e00e9..540c1eb 100644 --- a/.github/workflows/bump-release-rc.yml +++ b/.github/workflows/bump-release-rc.yml @@ -33,5 +33,5 @@ jobs: git add .github/workflows/ . git commit -m "Bump rc version in workflow files" git push --set-upstream origin bump-rc-version-${{ inputs.rc_version }} - gh pr create --title "Bump rc version in workflow files" --body "This PR updates the rc version in the workflow files to ${{ inputs.rc_version }}." --label "automerge" --assignee "runoragbaire" + gh pr create --title "Bump rc version in workflow files" --body "This PR updates the rc version in the workflow files to ${{ inputs.rc_version }}." --label "automerge" gh pr merge --auto From ceb01ea12a910b22f8329667b7b38d535f55c36e Mon Sep 17 00:00:00 2001 From: runora95 Date: Tue, 14 Oct 2025 09:31:08 -0400 Subject: [PATCH 5/5] typo --- .github/workflows/bump-release-rc.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump-release-rc.yml b/.github/workflows/bump-release-rc.yml index 540c1eb..f74d121 100644 --- a/.github/workflows/bump-release-rc.yml +++ b/.github/workflows/bump-release-rc.yml @@ -22,9 +22,9 @@ jobs: - name: Bump rc version in workflow files run: | git checkout -b bump-rc-version-${{ inputs.rc_version }} - sed -i -E 's/v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/v0.9.0-rc0/' 'workflow-template-release-candidate.yml' + sed -i -E 's/v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/v${{ inputs.rc_version }}/' 'workflow-template-release-candidate.yml' python compile.py - sed -i -E 's/v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/v0.9.0-rc0/' '.github/workflows/lightning-latest-rc.yml' + sed -i -E 's/v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/v${{ inputs.rc_version }}/' '.github/workflows/lightning-latest-rc.yml' - name: Commit and push changes run: |