Skip to content

Commit

Permalink
fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
roiperlman committed Sep 6, 2021
1 parent 9209c10 commit 5437321
Showing 1 changed file with 9 additions and 29 deletions.
38 changes: 9 additions & 29 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ name: Build and publish package
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -26,7 +23,7 @@ jobs:
id: build
run: tsc

########## TEST ##########
########## TEST ##########
test:
needs: [build]
runs-on: ubuntu-latest
Expand All @@ -45,15 +42,8 @@ jobs:
- name: Run Tests
id: test
run: npm run test
# - name: Run Coveralls
# run: npm run coveralls
# - name: Publish results to codecov
# uses: codecov/codecov-action@v2
# with:
# verbose: true


########## PUBLISH ##########
########## PUBLISH ##########
publish:
needs: [ build, test ]
runs-on: ubuntu-latest
Expand All @@ -80,24 +70,20 @@ jobs:
- if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
########## SEND REPORT ##########
send_report:
if: always()
needs: [ build, test, publish ]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Private actions checkout
uses: daspn/private-actions-checkout@v2
with:
actions_list: '["roiperlman/telegram_notifier@master"]'
checkout_base_path: ./.github/actions/external
app_id: ${{ secrets.APP_ID }}
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
configure_git: true
- name: notify
uses: ./.github/actions/external/telegram_notifier/.github/actions/notifier
- run: echo "Sending report to telgram bot"
- name: Notify
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: >
Workflow Execution Summary:
Expand All @@ -113,9 +99,3 @@ jobs:
▪️ Publish: ${{ needs.publish.result }}
New Version: ${{ needs.publish.outputs.new_version }}
Update Type: ${{ needs.publish.outputs.update_type }}

0 comments on commit 5437321

Please sign in to comment.