Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/release-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,17 @@ jobs:
- name: Publish
run: npm run release -- --yes --new
env:
REPO_PAT: ${{ secrets.REPO_PAT }}
REPO_PAT: ${{ secrets.REPO_PAT }}

# Handle failure and notify
- name: Handle failure
env:
test_secret: ${{secrets.NOTIFICATION_WEBHOOK}}
if: failure()
run: |
echo "Release failed! Issues encountered"
if [ -z "$test_secret" ]; then
echo "Could not find secret"
else
curl -X POST -H 'Content-type: application/json' --data '{"text":"Open Source Pipeline Failure!\nAn issue occured in commit: ${{github.server_url}}/${{github.repository}}/commit/${{github.sha}}"}' $test_secret
fi
Loading