-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Shell scripts and CI/CD pipeline
- Loading branch information
Showing
10 changed files
with
109 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,3 +77,19 @@ jobs: | |
# asset_path: ./* | ||
# asset_name: repository-template-${{ needs.metadata.outputs.version }}.tar.gz | ||
# asset_content_type: "application/gzip" | ||
success: | ||
runs-on: ubuntu-latest | ||
needs: [publish] | ||
steps: | ||
- name: "Check prerequisites for notification" | ||
id: check | ||
run: echo "secret_exist=${{ secrets.TEAMS_NOTIFICATION_WEBHOOK_URL != '' }}" >> $GITHUB_OUTPUT | ||
- name: "Notify on build completion" | ||
if: steps.check.outputs.secret_exist == 'true' | ||
uses: nhs-england-tools/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
teams-webhook-url: ${{ secrets.TEAMS_NOTIFICATION_WEBHOOK_URL }} | ||
message-title: "Notification title" | ||
message-text: "This is a notification body" | ||
link: ${{ github.event.pull_request.html_url }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,3 +56,19 @@ jobs: | |
- name: "Checkout code" | ||
uses: actions/checkout@v4 | ||
# TODO: More jobs or/and steps here | ||
# success: | ||
# runs-on: ubuntu-latest | ||
# needs: [deploy] | ||
# steps: | ||
# - name: "Check prerequisites for notification" | ||
# id: check | ||
# run: echo "secret_exist=${{ secrets.TEAMS_NOTIFICATION_WEBHOOK_URL != '' }}" >> $GITHUB_OUTPUT | ||
# - name: "Notify on build completion" | ||
# if: steps.check.outputs.secret_exist == 'true' | ||
# uses: nhs-england-tools/[email protected] | ||
# with: | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# teams-webhook-url: ${{ secrets.TEAMS_NOTIFICATION_WEBHOOK_URL }} | ||
# message-title: "Notification title" | ||
# message-text: "This is a notification body" | ||
# link: ${{ github.event.pull_request.html_url }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,19 +65,3 @@ jobs: | |
run: | | ||
echo "Uploading artefact 2 ..." | ||
# TODO: Use either action/cache or action/upload-artifact | ||
success: | ||
runs-on: ubuntu-latest | ||
needs: [artefact-1, artefact-2] | ||
steps: | ||
- name: "Check prerequisites for notification" | ||
id: check | ||
run: echo "secret_exist=${{ secrets.TEAMS_NOTIFICATION_WEBHOOK_URL != '' }}" >> $GITHUB_OUTPUT | ||
- name: "Notify on build completion" | ||
if: steps.check.outputs.secret_exist == 'true' | ||
uses: nhs-england-tools/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
teams-webhook-url: ${{ secrets.TEAMS_NOTIFICATION_WEBHOOK_URL }} | ||
message-title: "Notification title" | ||
message-text: "This is a notification body" | ||
link: ${{ github.event.pull_request.html_url }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.