Merge pull request #501 from codigoencasa/feature/breaking-change

Feature/breaking change
This commit is contained in:
Leifer Mendez
2023-01-16 12:42:27 +01:00
committed by GitHub
5 changed files with 24 additions and 14 deletions

View File

@@ -39,8 +39,14 @@ jobs:
- name: Check Twilio - name: Check Twilio
run: yarn node ./scripts/checker.js --name=twilio --stable=true run: yarn node ./scripts/checker.js --name=twilio --stable=true
- name: Add and commit changes to gh-pages branch
run: |
git config --local user.email 'action@github.com'
git config --local user.name 'GitHub Action'
git add .
- uses: stefanzweifel/git-auto-commit-action@v4 - uses: stefanzweifel/git-auto-commit-action@v4
with: with:
commit_message: 'ci(providers): 🚩 Check BREAKING CHANGE' commit_message: 'ci(providers): check provider versions'
create_branch: true create_branch: true
branch: feature/breaking-change branch: feature/providers-major

View File

@@ -61,9 +61,15 @@ jobs:
check-providers: check-providers:
name: Check Providers Versions name: Check Providers Versions
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs:
commit: ${{ steps.vars.outputs.commit }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{github.event.after}}
persist-credentials: false
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v3
@@ -92,15 +98,13 @@ jobs:
- name: Check Twilio - name: Check Twilio
run: yarn node ./scripts/checker.js --name=twilio --stable=true run: yarn node ./scripts/checker.js --name=twilio --stable=true
- name: Add and commit changes to gh-pages branch - name: Set output
run: | id: vars
git config --local user.email 'action@github.com' run: echo "commit=$(git log --format=%B -n 1 ${{github.event.after}})" >> $GITHUB_OUTPUT
git config --local user.name 'GitHub Action'
git add .
git commit -m 'major'
- name: Push changes - name: Commit & Push changes
uses: ad-m/github-push-action@master uses: actions-js/push@master
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: feature/providers-major branch: feature/providers-major
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true

View File

@@ -70,7 +70,7 @@ class CoreClass {
const { body, from } = messageCtxInComming const { body, from } = messageCtxInComming
let msgToSend = [] let msgToSend = []
let fallBackFlag = false let fallBackFlag = false
if (!body) return
if (!body.length) return if (!body.length) return
const prevMsg = await this.databaseClass.getPrevByNumber(from) const prevMsg = await this.databaseClass.getPrevByNumber(from)

View File

@@ -24,7 +24,7 @@ const checkNodeVersion = () => {
} }
const checkOs = () => { const checkOs = () => {
return new Promise((resolve, reject) => { return new Promise((resolve) => {
console.log(bgCyan('🙂 Revisando tu sistema operativo')) console.log(bgCyan('🙂 Revisando tu sistema operativo'))
const os = process.platform const os = process.platform
if (!os.includes('win32')) { if (!os.includes('win32')) {

View File

@@ -1,5 +1,5 @@
{ {
"dependencies": { "dependencies": {
"whatsapp-web.js": "1.19.2" "whatsapp-web.js": "1.18.2"
} }
} }