-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP test update action on this branch
- Loading branch information
Xavier Medrano
authored and
Xavier Medrano
committed
Mar 14, 2024
1 parent
4a24569
commit 406cd87
Showing
2 changed files
with
42 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Check for dependency upgrades | ||
|
||
# on: | ||
# schedule: | ||
# # TODO: change this to be once a week or similar | ||
# - cron: '30 5 * * 1,3' | ||
on: | ||
push: | ||
branches: | ||
# TODO: test event, will change | ||
- feature/dependency-auto-update | ||
|
||
jobs: | ||
upgrade-dependencies: | ||
name: Check for dependency upgrades | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Activate a virtual environment | ||
run: python -m venv .venv && source .venv/bin/activate | ||
- name: Install pip-upgrader | ||
run: pip install pip-upgrader | ||
- name: Update python dependencies | ||
run: | | ||
find ./docker -name requirements.txt -exec pip-upgrade {} --skip-package-installation -p all \; | ||
- name: Update node dependencies | ||
run: | | ||
source .venv/bin/activate && \ | ||
pip install nodeenv && \ | ||
nodeenv -p && \ | ||
npm install -g npm-check-updates && \ | ||
find ./docker -name package.json -exec ncu --packageFile {} -u \; | ||
# TODO: push to the proper branch | ||
- name: Push to main branch | ||
run: | | ||
git config --global user.name "xmedr" | ||
git config --global user.email "[email protected]" | ||
git add . | ||
git commit -m "Update pypi and node dependencies" | ||
git push origin feature/dependency-auto-update |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
.DS_Store | ||
.venv |