update.yml 688 B

123456789101112131415161718192021222324
  1. name: Automatic update
  2. on:
  3. schedule:
  4. - cron: '13 10 * * *' # Update once a day at 10:13 (chosen arbitrarily)
  5. jobs:
  6. update:
  7. name: "Update regexes"
  8. runs-on: ubuntu-latest
  9. # Don't run it on forks that might enable Actions
  10. if: github.repository == 'ua-parser/uap-php'
  11. steps:
  12. - uses: actions/checkout@v3
  13. - uses: shivammathur/setup-php@v2
  14. with:
  15. coverage: "none"
  16. php-version: "7.4"
  17. - name: Install dependencies
  18. run: composer update --ansi --no-progress --prefer-dist --no-interaction
  19. - run: ./ci/update.sh