mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-20 20:49:15 +00:00
fix(cli): ⚡ refactor
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -61,6 +61,8 @@ 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
|
||||||
@@ -95,6 +97,10 @@ 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: Set output
|
||||||
|
id: vars
|
||||||
|
run: echo "commit=$(git log --format=%B -n 1 ${{github.event.after}})" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get Commit Message
|
- name: Get Commit Message
|
||||||
run: |
|
run: |
|
||||||
MSG=$(git log --format=%B -n 1 ${{github.event.after}})
|
MSG=$(git log --format=%B -n 1 ${{github.event.after}})
|
||||||
@@ -105,7 +111,7 @@ jobs:
|
|||||||
git config --local user.email 'action@github.com'
|
git config --local user.email 'action@github.com'
|
||||||
git config --local user.name 'GitHub Action'
|
git config --local user.name 'GitHub Action'
|
||||||
git add .
|
git add .
|
||||||
git commit -m '"${{env.COMMIT_MESSAGE}}"'
|
git commit -m '"${{ steps.vars.outputs.commit }}"'
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
|
|||||||
Reference in New Issue
Block a user