merge-upstream.yml 694 B

12345678910111213141516171819202122232425262728
  1. name: Merge upstream
  2. on:
  3. push:
  4. branches: [patches]
  5. workflow_dispatch: {}
  6. repository_dispatch:
  7. types: [Update]
  8. # client_payload: { ref: string }
  9. concurrency:
  10. group: merge-${{ github.event.client_payload.ref || github.ref }}
  11. cancel-in-progress: true
  12. jobs:
  13. merge:
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/checkout@v2
  17. with:
  18. ref: patches
  19. fetch-depth: 0
  20. ssh-key: ${{ secrets.DEPLOY_KEY }}
  21. - run: bash scripts/upgradeable/git-user-config.sh
  22. - run: bash scripts/upgradeable/merge-upstream.sh
  23. env:
  24. REF: ${{ github.event.client_payload.ref || github.ref}}
  25. - run: git push origin HEAD