update.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: Update Cucumber
  2. on:
  3. schedule:
  4. - cron: '0 7 * * *'
  5. jobs:
  6. cucumber-update:
  7. runs-on: ubuntu-latest
  8. name: Upstream cucumber update
  9. steps:
  10. - name: Setup PHP
  11. uses: shivammathur/setup-php@v2
  12. with:
  13. php-version: 7.4
  14. coverage: none
  15. - uses: actions/checkout@v2
  16. - name: Install dependencies
  17. run: composer update
  18. - name: Update cucumber tag
  19. id: cucumber
  20. run: bin/update_cucumber
  21. - name: Re-install dependencies
  22. run: composer update
  23. if: steps.cucumber.outputs.cucumber_version
  24. - name: Update translations
  25. run: bin/update_i18n
  26. if: steps.cucumber.outputs.cucumber_version
  27. - name: Find changelog
  28. id: changelog
  29. run: bin/cucumber_changelog ${{ steps.cucumber.outputs.cucumber_version }}
  30. if: steps.cucumber.outputs.cucumber_version
  31. - name: Open a PR
  32. uses: peter-evans/create-pull-request@v3
  33. if: steps.cucumber.outputs.cucumber_version
  34. with:
  35. commit-message: Automatic Cucumber tag update to ${{ steps.cucumber.outputs.cucumber_version }}
  36. branch: cucumber-update-${{ steps.cucumber.outputs.cucumber_version }}
  37. delete-branch: true
  38. title: Cucumber update ${{ steps.cucumber.outputs.cucumber_version }}
  39. body: ${{ steps.changelog.outputs.changelog }}
  40. base: 'master'