Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Slack notification for JPA template #150

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/actions/ci-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
using: "composite"
steps:
- name: Set up JDK
uses: QubitPi/hashicorp-aws/hashicorp/webservice/auxiliary/github/actions/jdk-setup@master
uses: QubitPi/jersey-webservice-deployment-actions/.github/actions/jdk-setup@master
- name: Load Maven settings.xml
shell: bash
run: cp settings.xml.example ~/.m2/settings.xml
Expand Down
25 changes: 24 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
documentation:
name: Test & Release Documentation (including Javadoc)
needs: tests
outputs:
outcome: ${{ job.status }}
continue-on-error: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -83,9 +86,19 @@ jobs:
user_name: ${{ env.USER }}
user_email: ${{ env.EMAIL }}

slack-notification-pr:
name: Send Slack Notification
if: ${{ (github.event_name == 'pull_request') && always() }}
needs: documentation
uses: QubitPi/hashicorp-aws/.github/workflows/slack-notification.yml@master
with:
job-status: ${{ needs.documentation.outputs.outcome }}
secrets:
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}

triggering:
name: Triggering data model CI/CD
needs: tests
needs: documentation
if: github.ref == 'refs/heads/jpa-elide'
runs-on: ubuntu-latest
steps:
Expand All @@ -95,3 +108,13 @@ jobs:
token: ${{ secrets.JWT_DOWNSTREAM_CICD_TRIGGER_TOKEN }}
repository: QubitPi/jersey-webservice-template-jpa-data-models
event-type: jersey-webservice-template-jpa-elide-changes

slack-notification-jpa-elide-branch-commit:
name: Send Slack Notification
if: ${{ (github.ref == 'refs/heads/jpa-elide') && always() }}
needs: triggering
uses: QubitPi/hashicorp-aws/.github/workflows/slack-notification.yml@master
with:
job-status: ${{ needs.triggering.outputs.outcome }}
secrets:
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
Loading