Skip to content

Commit

Permalink
Updated version bump workflows to use composite GH actions (#204)
Browse files Browse the repository at this point in the history
* Updated version bump workflows to use composite GH acitons

* Tagged main as opposed to release tag
  • Loading branch information
Jaybsoni authored Apr 20, 2022
1 parent 171da66 commit 2504209
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 214 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/changelog_template.txt

This file was deleted.

27 changes: 8 additions & 19 deletions .github/workflows/post_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,29 @@ name: Automated Release Version Bumps

on:
release:
types: [published] # run on release!
types: [published]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "post_release_version_bump"
post_release_version_bump:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v2
- name: Run post-release version bump
uses: PennyLaneAI/automation/version_bump_action@main
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pennylane
version_path: "./pennylane_qiskit/_version.py"
changelog_path: "./CHANGELOG.md"
release_status: "post_release"

- name: Run version bump
run: >
python .github/workflows/vb_script.py
--version_path "./pennylane_qiskit/_version.py"
--changelog_path "CHANGELOG.md" --post_release
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: post release version bump
title: Version Bump
body: updated changelog and _version.py
branch: post-release-version-bump
reviewers: Jaybsoni
base: main
reviewers: rmoyard
base: master
27 changes: 8 additions & 19 deletions .github/workflows/pre_release_version_bump.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,29 @@
name: Manually Triggered Version Bumps

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "pre_release_version_bump"
pre_release_version_bump:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2

- name: Run pre-release version bump
uses: PennyLaneAI/automation/version_bump_action@main
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pennylane
version_path: "./pennylane_qiskit/_version.py"
changelog_path: "./CHANGELOG.md"
release_status: "pre_release"

- name: Run version bump
run: >
python .github/workflows/vb_script.py
--version_path "./pennylane_qiskit/_version.py"
--changelog_path "CHANGELOG.md" --pre_release #pylint: disable=trailing-spaces
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: pre release version bump
title: Version Bump
body: updated changelog and _version.py
branch: pre-release-version-bump
reviewers: Jaybsoni
base: main
reviewers: rmoyard
base: master
159 changes: 0 additions & 159 deletions .github/workflows/vb_script.py

This file was deleted.

0 comments on commit 2504209

Please sign in to comment.