File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 7878 git config --global user.name "${{ github.actor }}-ci-automation"
7979 git config --global user.email "${{ env.GITHUB_GIT_EMAIL }}"
8080
81- - name : Check for changes
82- run : git diff --quiet || git commit -am "Update dependencies"
81+ - name : Make changes and commit
82+ run : |
83+ DATE=$(date +'%Y-%m-%d')
84+ BRANCH_NAME="bump/deps-${DATE}"
85+
86+ git checkout -b "$BRANCH_NAME"
87+ git add .
88+ git commit -m "Automated update on ${DATE}"
8389
84- - name : Push changes
85- if : success()
86- run : git push origin HEAD
90+ - name : Push changes to a new branch
91+ run : git push origin "$BRANCH_NAME"
92+
93+ - name : Create a Pull Request
94+ uses : peter-evans/create-pull-request@v5
95+ with :
96+ token : ${{ secrets.GITHUB_TOKEN }}
97+ branch : ' $BRANCH_NAME'
98+ base : dev
99+ title : ' Automated Dependency Update on ${DATE}'
100+ body : ' This pull request has been automatically created by GitHub Actions.'
You can’t perform that action at this time.
0 commit comments