name: Host on: schedule: - cron: '50 */5 * * *' push: branches: - 'main' workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: host: name: Host runs-on: ubuntu-latest strategy: matrix: node-version: [16.x] steps: - name: Get code uses: actions/checkout@v2 - name: Use node uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Install Yarn run: npm install --location=global yarn - name: Use node_modules cache uses: actions/cache@v2 with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - name: Install dependencies run: yarn - name: Host run: yarn run start discord-token=${{ secrets.DISCORD_TOKEN }} wargaming-application-id=${{ secrets.WARGAMING_APPLICATION_ID }}