Skip to content

Commit

Permalink
ci: use renovatebot reusable workflows
Browse files Browse the repository at this point in the history
to use the new reusable workflows we created in https://github.com/turo/dependency-management-tools
  • Loading branch information
tagoro9 committed Oct 4, 2024
1 parent 4158a24 commit 146935a
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/update-dependencies.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
name: Update dependencies
concurrency: update-dependencies

on:
schedule:
# Every day at midnight
- cron: "0 0 * * *"
workflow_dispatch:
issue_comment:
types:
- edited
pull_request:
types:
- edited
- synchronize

jobs:
update-dependencies:
runs-on: ubuntu-latest
name: Update dependencies
# Only run in turo-dependency-manager PRs or when manually triggered or as part of a schedule
if: (github.event_name == 'issue_comment' && github.event.issue.user.login == 'turo-dependency-manager') || (github.event_name == 'pull_request' && github.actor == 'turo-dependency-manager') || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
steps:
- name: Update dependencies
uses: open-turo/action-renovate@v1
with:
github-token: ${{ secrets.TURO_GITHUB_DEPENDENCY_MANAGER_TOKEN }}
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}
uses: turo/dependency-management-tools/.github/workflows/reusable-workflow.update-dependencies.yaml@v1
secrets: inherit

0 comments on commit 146935a

Please sign in to comment.