refresh-php8.yml 736 B

1234567891011121314151617181920212223242526272829303132
  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@v2
  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: git merge origin/master
  22. - name: Push new changes
  23. uses: github-actions-x/commit@v2.8
  24. with:
  25. github-token: ${{ secrets.GITHUB_TOKEN }}
  26. push-branch: 'php8'