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:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -64,6 +64,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
ref: ${{github.event.after}}
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
@@ -92,12 +95,17 @@ 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: Get Commit Message
|
||||||
|
run: |
|
||||||
|
MSG=$(git log --format=%B -n 1 ${{github.event.after}})
|
||||||
|
echo "::set-env name=COMMIT_MESSAGE::${MSG}"
|
||||||
|
|
||||||
- name: Add and commit changes to gh-pages branch
|
- name: Add and commit changes to gh-pages branch
|
||||||
run: |
|
run: |
|
||||||
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 '"${{ github.event.head_commit.message }}"'
|
git commit -m '"${{env.COMMIT_MESSAGE}}"'
|
||||||
|
|
||||||
- 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