Skip to content

Commit

Permalink
ci(update-deps): fix diff
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Aug 9, 2023
1 parent 49af2ea commit d890136
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/update-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ on:
- cron: 0 16 * * * # every day at 16pm
workflow_dispatch:

concurrency:
group: updateDependencies-${{ github.ref }}
cancel-in-progress: true

jobs:
updateDependencies:
name: 'Update dependencies'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # fetch all history so that git diff can compare against HEAD~1

- name: 'Setup project'
uses: ./.github/actions/setup-project
Expand All @@ -31,7 +37,7 @@ jobs:
echo "pending_git_changes=${changes}" >> "$GITHUB_OUTPUT"
createPullRequest:
name: 'Update dependencies'
name: 'Create Pull Request'
runs-on: ubuntu-latest
needs: [updateDependencies]
if: ${{ needs.updateDependencies.outputs.pending_git_changes != '' }}
Expand Down Expand Up @@ -61,4 +67,4 @@ jobs:
gir add -A
git commit -m "chore: update dependencies"
git push origin $branch_name
gh pr create --title "chore: update dependencies" --base main --head $branch_name --label "update-deps"
gh pr create --title "chore: update dependencies 🪄" --base main --head $branch_name --label "update-deps"

0 comments on commit d890136

Please sign in to comment.