.github/workflows/auto_update.yml #331
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| schedule: | |
| - cron: "0 15 * * *" | |
| workflow_dispatch: | |
| inputs: | |
| tags: | |
| description: "Test scenario tags" | |
| jobs: | |
| cron: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| node-version: [16.x] | |
| steps: | |
| - name: Repository checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| submodules: true | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3.6.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Setup Python | |
| uses: actions/setup-python@v4.5.0 | |
| with: | |
| python-version: "3.11" | |
| - name: Install typing-extensions | |
| run: python -m pip install typing-extensions | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Update submodules | |
| run: git submodule update --init --recursive | |
| - name: Check update eudplib | |
| run: | | |
| yarn update | |
| - name: Publish VS Code extension | |
| if: success() | |
| run: | | |
| cd packages/editors/vscode && yarn deploy | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| - name: Commit and push all changes | |
| if: success() | |
| run: | | |
| git add . | |
| git config --global user.email "github-actions@github.com" | |
| git config --global user.name "github-actions" | |
| git commit -m "feat: Update eudplib" | |
| git push |