Skip to content

Commit

Permalink
Added basic slack notification code
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f7ec805 commit 3c7ae42
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -30,7 +30,19 @@ jobs:
working-directory: xero-node

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
working-directory: xero-node

notify-slack:
runs-on: ubuntu-latest
needs: publish
steps:
- name: Send slack notification on sucess
if: success()
run: echo "Slack alert on success"

- name: Send slack notification on failure
if: failure()
run: echo "Slack alert on failure"

0 comments on commit 3c7ae42

Please sign in to comment.