updater.yml 823 B

1234567891011121314151617181920212223242526272829303132
  1. name: Updater CI
  2. on: workflow_dispatch
  3. jobs:
  4. release-update:
  5. runs-on: ubuntu-latest
  6. if: startsWith(github.repository, 'zzzgydi')
  7. steps:
  8. - name: Checkout repository
  9. uses: actions/checkout@v2
  10. - name: Get yarn cache dir path
  11. id: yarn-cache-dir-path
  12. run: echo "::set-output name=dir::$(yarn cache dir)"
  13. - name: Yarn Cache
  14. uses: actions/cache@v2
  15. id: yarn-cache
  16. with:
  17. path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
  18. key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
  19. restore-keys: |
  20. ${{ runner.os }}-yarn-
  21. - name: Yarn install
  22. run: yarn install
  23. - name: Release updater file
  24. run: yarn run updater
  25. env:
  26. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}