| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- name: "Update dependencies"
- on:
- push:
- branches:
- - mj-auto-update-deps
- schedule:
- # Sunday, 1PM UTC
- - cron: "0 13 * * 0"
- jobs:
- stale:
- runs-on: ubuntu-latest
- steps:
- - name: Setup Go
- uses: actions/setup-go@v3
- with:
- go-version: "1.19"
- - name: Generate token
- id: generate_token
- uses: tibdex/github-app-token@v1
- with:
- app_id: ${{ secrets.APP_ID }}
- private_key: ${{ secrets.PRIVATE_KEY }}
- - uses: actions/checkout@v2
- with:
- token: ${{ steps.generate_token.outputs.token }}
- - name: create pull request
- run: |
- git config --global user.email "ExternalSecretsOperator@users.noreply.github.com"
- git config --global user.name "External Secrets Operator"
- BRANCH=update-deps-$(date "+%s")
- make update-deps
- git checkout -b $BRANCH
- git add -A
- git commit -m "update dependencies" -s
- git push origin $BRANCH
- gh pr create -B main -H ${BRANCH} --title 'chore: update dependencies' --body 'Created by Github action'
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|