-
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.
change action to open pr and test on push
- Loading branch information
Xavier Medrano
authored and
Xavier Medrano
committed
Oct 3, 2024
1 parent
d60c9f9
commit b8ede3b
Showing
1 changed file
with
11 additions
and
2 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 |
---|---|---|
|
@@ -3,6 +3,9 @@ name: Check for dependency upgrades | |
on: | ||
schedule: | ||
- cron: '30 5 * * 0' | ||
push: | ||
branches: | ||
- auto/dependency-update | ||
|
||
jobs: | ||
upgrade-dependencies: | ||
|
@@ -24,11 +27,17 @@ jobs: | |
nodeenv -p && \ | ||
npm install -g npm-check-updates && \ | ||
find ./docker -name package.json -exec ncu --packageFile {} -u \; | ||
- name: Push to main branch | ||
- name: Push to designated branch | ||
run: | | ||
git config --global user.name "xmedr" | ||
git config --global user.email "[email protected]" | ||
git checkout auto/dependency-update | ||
git add . | ||
git commit -m "Update pypi and node dependencies" | ||
git push origin ${{ github.ref_name }} | ||
git push origin auto/dependency-update | ||
- name: Create pull request | ||
run: | | ||
gh pr create -B main -H auto/dependency-update --title 'Update cookiecutter dependencies' --body 'Created by Github action. Review changes to the cookiecutters' dependencies and merge if stable.' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |