From 4136a7b36a0830b26c575e11123c44cff33a0ee6 Mon Sep 17 00:00:00 2001 From: Daniel Grimm Date: Wed, 9 Oct 2024 11:43:44 +0200 Subject: [PATCH] Create GH Action for update-deps (#393) Signed-off-by: Daniel Grimm --- .github/workflows/update-deps.yaml | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/update-deps.yaml diff --git a/.github/workflows/update-deps.yaml b/.github/workflows/update-deps.yaml new file mode 100644 index 000000000..96bdc372f --- /dev/null +++ b/.github/workflows/update-deps.yaml @@ -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