Skip to content

Commit

Permalink
Create GH Action for update-deps (#393)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Grimm <[email protected]>
  • Loading branch information
dgn authored Oct 9, 2024
1 parent 3656ec9 commit 4136a7b
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/update-deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Update-deps workflow

on:
schedule:
- cron: "0 5 * * *" # everyday at 5AM UTC
workflow_dispatch:
inputs:
branch:
description: "Branch to update"
default: "main"
required: true

run-name: update-deps

env:
GIT_USER: ${{ secrets.GIT_USER }}
GH_TOKEN: ${{ secrets.GIT_TOKEN }}
AUTOMATOR_ORG: istio-ecosystem
AUTOMATOR_REPO: sail-operator
AUTOMATOR_BRANCH: ${{ inputs.branch || 'main' }}

jobs:
update-deps:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
repository: istio/test-infra
ref: master

- name: Run Automator
run: |
./tools/automator/automator.sh \
--org=$AUTOMATOR_ORG \
--repo=sail-operator \
--branch=$AUTOMATOR_BRANCH \
'--title=Automator: Update dependencies in $AUTOMATOR_ORG/$AUTOMATOR_REPO@$AUTOMATOR_BRANCH' \
--labels=auto-merge \
--modifier=update_deps \
--token-env \
--cmd=./tools/update_deps.sh \
--signoff

0 comments on commit 4136a7b

Please sign in to comment.