-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(update-deps): create PR only if there are pending changes
- Loading branch information
Showing
1 changed file
with
10 additions
and
4 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 |
---|---|---|
|
@@ -24,12 +24,18 @@ jobs: | |
- name: 'Check code quality' | ||
uses: ./.github/actions/check-quality | ||
|
||
- name: 'Prepare git' | ||
- name: Compare Changes | ||
id: compare_changes | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
git branch -u origin/main main | ||
changes=$(git diff --name-only HEAD~1) | ||
echo "pending_git_changes=${changes}" >> "$GITHUB_OUTPUT" | ||
createPullRequest: | ||
name: 'Update dependencies' | ||
runs-on: ubuntu-latest | ||
needs: [updateDependencies] | ||
if: ${{ needs.updateDependencies.outputs.pending_git_changes != '' }} | ||
steps: | ||
- name: Install jq | ||
run: | | ||
sudo apt-get update | ||
|