-
Notifications
You must be signed in to change notification settings - Fork 19
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
Changes from all commits
63301f6
1b54db9
b14f859
1c08d4b
b6c876f
ee20df6
5781369
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, it's great we can input this! 😮 💯 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file was deleted.
There was a problem hiding this comment.
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 ofv1.0
. Also found this (though may not be relevant anymore):actions/upload-artifact#41
There was a problem hiding this comment.
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.