This repository has been archived by the owner on Dec 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from MousaZeidBaker/feature/update-dependencie…
…s-workflow add workflow that updates dependencies
- Loading branch information
Showing
3 changed files
with
50 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Update Dependencies | ||
|
||
# controls when the action will run | ||
on: | ||
schedule: | ||
- cron: '0 6 1 * *' # at 06:00 on the first day of every month | ||
workflow_dispatch: # enables manual trigger | ||
|
||
jobs: | ||
update_dependencies: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install poetry 1.1.12 | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: 1.1.12 | ||
|
||
- name: Update dependencies | ||
run: | | ||
pip install poetryup | ||
poetryup | ||
if [ -n "$(git status --porcelain)" ]; then | ||
# working tree NOT clean, bump project version | ||
poetry version patch | ||
fi | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
commit-message: Update dependencies | ||
title: Update dependencies | ||
labels: | | ||
patch | ||
branch: update-dependencies | ||
delete-branch: true |
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