refresh-php8.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This is a basic workflow to help you get started with Actions
  2. name: Refresh PHP 8 branch
  3. # Controls when the workflow will run
  4. on:
  5. # Triggers the workflow on push or pull request events but only for the master branch
  6. push:
  7. branches: [ master ]
  8. schedule:
  9. - cron: '42 2 * * *'
  10. # Allows you to run this workflow manually from the Actions tab
  11. workflow_dispatch:
  12. # A workflow run is made up of one or more jobs that can run sequentially or in parallel
  13. jobs:
  14. # This workflow contains a single job called "build"
  15. build:
  16. # The type of runner that the job will run on
  17. runs-on: ubuntu-latest
  18. # Steps represent a sequence of tasks that will be executed as part of the job
  19. steps:
  20. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  21. - uses: actions/checkout@v2
  22. - name: Checkout php8 branch
  23. run: git checkout php8
  24. - name: Merge master changes into php8
  25. run: git merge master
  26. - name: Push new changes
  27. uses: github-actions-x/commit@v2.8
  28. with:
  29. github-token: ${{ secrets.GITHUB_TOKEN }}
  30. push-branch: 'php8'