-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef9e959
commit f7c2c81
Showing
1 changed file
with
14 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,22 +15,28 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Set up pipenv | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.local/share/virtualenvs | ||
key: ${{ runner.os }}-pipenv-${{ hashfiles('**/Pipfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pipenv- | ||
- name: Install dependencies | ||
uses: VaultVulp/[email protected] | ||
with: | ||
command: install -d | ||
|
||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pipenv | ||
pip install --deploy | ||
- name: Delete folder | ||
run: | | ||
rm -rf meraki | ||
- name: Regenerate Python Library | ||
uses: VaultVulp/[email protected] | ||
with: | ||
command: python generator/generate_library.py -g true -v ${{ github.event.inputs.library_version }} | ||
run: | | ||
pipenv run python generator/generate_library.py -g true -v ${{ github.event.inputs.library_version }} | ||
- name: Commit changes to new branch | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: GitHub Action | ||
author_email: [email protected] | ||
message: Automatically regenerated library. | ||
message: Automatically regenerated library to version ${{ github.event.inputs.library_version }}. | ||
new_branch: release |