update-deps.yml 891 B

1234567891011121314151617181920212223242526272829303132
  1. name: "Update dependencies"
  2. on:
  3. push:
  4. branches:
  5. - mj-auto-update-deps
  6. schedule:
  7. # Sunday, 1PM UTC
  8. - cron: "0 13 * * 0"
  9. jobs:
  10. stale:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Setup Go
  15. uses: actions/setup-go@v3
  16. with:
  17. go-version: "1.19"
  18. - name: create pull request
  19. run: |
  20. git config --global user.email "ExternalSecretsOperator@users.noreply.github.com"
  21. git config --global user.name "External Secrets Operator"
  22. BRANCH=update-deps-$(date "+%s")
  23. make update-deps
  24. git checkout -b $BRANCH
  25. git add -A
  26. git commit -m "update dependencies" -s
  27. git push origin $BRANCH
  28. gh pr create -B main -H ${BRANCH} --title 'chore: update dependencies' --body 'Created by Github action'
  29. env:
  30. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}