update-preview-deps.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: "Update Preview Dependencies"
  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. ref: 'feat/v2'
  17. - name: Setup Node.js 18.x
  18. uses: actions/setup-node@v2
  19. with:
  20. node-version: 18.x
  21. - name: Remove yarn.lock
  22. run: rm yarn.lock
  23. - name: Install Dependencies
  24. run: yarn
  25. - name: Open PR with changes
  26. uses: peter-evans/create-pull-request@v5
  27. env:
  28. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  29. with:
  30. title: "chore: updated preview dependencies"
  31. body: "This PR updates preview dependencies to the latest versions."
  32. branch: "chore/update-preview"
  33. base: "feat/v2"
  34. add-paths: yarn.lock