mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 11:39:14 +00:00
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: Update
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0/15 * * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./tools/version-checker
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install node v16
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
- name: Install dependencies
|
|
run: npm install
|
|
- name: Run Updater
|
|
run: ./update-version
|
|
- name: Store WA Version
|
|
run: echo WA_VERSION=`cat ./.version` >> $GITHUB_ENV
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v3
|
|
with:
|
|
commit-message: Update supported WhatsApp Web version to v${{ env.WA_VERSION }}
|
|
title: Update WhatsApp Web Version (${{ env.WA_VERSION }})
|
|
body: |
|
|
A new version of WhatsApp Web has been detected!
|
|
|
|
Tests should be run against this new version before merging.
|
|
labels: WhatsApp Change
|
|
reviewers: pedroslopez
|