Skip to content

Commit

Permalink
Updated version_bump.yml files to use composite GitHub Actions (#98)
Browse files Browse the repository at this point in the history
* updated pre_release_version_bump.yml file

* debug

* fixed syntax in yml

* another typo in yml

* Update .github/workflows/pre_release_version_bump.yml

* update post release yml, remove version bump logic

* update tag number on base action
  • Loading branch information
Jaybsoni authored Mar 23, 2022
1 parent 3df6f5a commit b9ddad3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 236 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/changelog_template.txt

This file was deleted.

19 changes: 5 additions & 14 deletions .github/workflows/post_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,12 @@ jobs:
- name: Clone repository
uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v2
- name: Run post-release version bump
uses: PennyLaneAI/automation/[email protected]
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pennylane
- name: Run version bump
run: >
python .github/workflows/vb_script.py
--version_path "./pennylane_sf/_version.py"
--changelog_path "./.github/CHANGELOG.md" --post_release
version_path: "./pennylane_sf/_version.py"
changelog_path: "./.github/CHANGELOG.md"
release_status: "post_release"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/pre_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,13 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pennylane

- name: Run version bump
run: >
python .github/workflows/vb_script.py
--version_path "./pennylane_sf/_version.py"
--changelog_path "./.github/CHANGELOG.md" --pre_release
- name: Run pre-release version bump
uses: PennyLaneAI/automation/[email protected]
with:
version_path: "./pennylane_sf/_version.py"
changelog_path: "./.github/CHANGELOG.md"
release_status: "pre_release"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
Expand Down
190 changes: 0 additions & 190 deletions .github/workflows/vb_script.py

This file was deleted.

0 comments on commit b9ddad3

Please sign in to comment.