refresh-php8.yml 983 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Refresh PHP 8 branch
  2. on:
  3. push:
  4. branches: [ master ]
  5. schedule:
  6. - cron: '42 2 * * *'
  7. workflow_dispatch:
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout php8 branch
  13. uses: actions/checkout@v3
  14. with:
  15. # directly checkout the php8 branch
  16. ref: php8
  17. # Number of commits to fetch. 0 indicates all history for all branches and tags.
  18. # Default: 1
  19. fetch-depth: 0
  20. - name: Merge master changes into php8
  21. run: |
  22. git config user.name "github-actions[bot]"
  23. git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
  24. git merge origin/master
  25. - name: Push new changes
  26. uses: github-actions-x/commit@v2.9
  27. with:
  28. name: github-actions[bot]
  29. email: 41898282+github-actions[bot]@users.noreply.github.com
  30. github-token: ${{ secrets.GITHUB_TOKEN }}
  31. push-branch: 'php8'