update-preview-deps-ci.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: "Update Preview Dependencies (feat/v2-ci)"
  2. on:
  3. schedule:
  4. - cron: "0 */3 * * *" # every three hours
  5. workflow_dispatch:
  6. jobs:
  7. update:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Cancel Previous Runs
  11. uses: styfle/cancel-workflow-action@0.9.1
  12. with:
  13. access_token: ${{ github.token }}
  14. - name: Checkout
  15. uses: actions/checkout@v2.3.5
  16. with:
  17. ref: 'feat/v2-ci'
  18. - name: Setup Node.js 18.x
  19. uses: actions/setup-node@v2
  20. with:
  21. node-version: 18.x
  22. - name: Remove yarn.lock
  23. run: rm yarn.lock
  24. - name: Install Dependencies
  25. run: yarn
  26. - name: Open PR with changes
  27. uses: peter-evans/create-pull-request@v5
  28. env:
  29. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  30. with:
  31. title: "chore(feat/v2-ci): updated preview dependencies"
  32. body: "This PR updates preview dependencies to the latest versions."
  33. branch: "chore/update-preview"
  34. base: "feat/v2-ci"
  35. add-paths: yarn.lock