-
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: improve CI caching * fix: add OS to cache key
- Loading branch information
Showing
4 changed files
with
79 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,36 +13,55 @@ jobs: | |
permissions: | ||
contents: write | ||
pull-requests: write | ||
env: | ||
POETRY_VIRTUALENVS_IN_PROJECT: 1 | ||
POETRY_INSTALLER_PARALLEL: 1 | ||
POETRY_VIRTUALENVS_CREATE: 1 | ||
|
||
steps: | ||
- name: Check out harlequin main branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Load cached Poetry installation | ||
id: cached-poetry | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.local | ||
key: ${{ runner.os }}-poetry-171 # increment to reset cache | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: 1.7.1 | ||
|
||
- name: Create release branch | ||
run: | | ||
git checkout -b release/v${{ github.event.inputs.newVersion }} | ||
git push --set-upstream origin release/v${{ github.event.inputs.newVersion }} | ||
- name: Bump version | ||
run: poetry version ${{ github.event.inputs.newVersion }} --no-interaction | ||
|
||
- name: Ensure package can be built | ||
run: poetry build --no-interaction | ||
|
||
- name: Update CHANGELOG | ||
uses: thomaseizinger/keep-a-changelog-new-release@v2 | ||
with: | ||
version: ${{ github.event.inputs.newVersion }} | ||
|
||
- name: Commit Changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Bumps version to ${{ github.event.inputs.newVersion }} | ||
|
||
- name: Create pull request into main | ||
uses: thomaseizinger/[email protected] | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters