Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated version_bump.yml files to use composite GitHub Actions #98

Merged
merged 7 commits into from
Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if as per our chat, we should pin to master here instead of v1.0. Also found this (though may not be relevant anymore):
actions/upload-artifact#41

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I remember reading a similar warning in their docs. Maybe it's better to leave it as is for now? If anything, we can create a new repo and remove the current one, transfer the action to the new one and tag it at v0.1 or v0.1.0 to allow for future tag changes as new actions are added and tested.

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, it's great we can input this! 😮 💯

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! we can set inputs and extract outputs as well! In this way a composite action can be run, and then outputs extracted and passed to local actions ! Its a very flexible framework!

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.