-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jamie zieziula
committed
Oct 2, 2024
1 parent
17ddbab
commit 3775ae8
Showing
11 changed files
with
85 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
name: Build and push image | ||
name: Build and Push Image | ||
|
||
"on": | ||
workflow_call: | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
name: Build and push images for merges to main | ||
name: Build and Push Images on Merge to Main | ||
|
||
"on": | ||
push: | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
name: Build and push images for tags | ||
name: Build and Push Images on Tags | ||
|
||
"on": | ||
push: | ||
|
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: Labeler | ||
|
||
"on": | ||
|
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: Notify on Failure | ||
|
||
"on": | ||
workflow_run: | ||
workflows: | ||
- Build and Push Images on Tags | ||
- Release Prefect Operator Helm Chart | ||
- Updatecli Dependency Updates | ||
types: [completed] | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
notify: | ||
name: Notify on Failure | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
permissions: | ||
# required to introspect the workflow run | ||
actions: read | ||
# required to read from the repo | ||
contents: read | ||
steps: | ||
- name: Format date | ||
run: | | ||
formatted_date=$(date -d "${{ github.event.workflow_run.run_started_at }}" "+%b %d at %I:%M %p") | ||
echo "FORMATTED_DATE=$formatted_date" >> $GITHUB_ENV | ||
- name: Send Slack notification | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
status: custom | ||
# https://api.slack.com/reference/messaging/attachments | ||
custom_payload: | | ||
{ | ||
attachments: [{ | ||
pretext: ':x: Workflow triggered by ${{ github.actor }} failed', | ||
title: '${{ github.event.workflow_run.display_title }} #${{github.event.workflow_run.run_number}}', | ||
title_link: '${{ github.event.workflow_run.html_url }}', | ||
footer: '${{ github.repository }} | ${{ env.FORMATTED_DATE }} UTC', | ||
footer_icon: 'https://slack-imgs.com/?c=1&o1=wi32.he32.si&url=https%3A%2F%2Fslack.github.com%2Fstatic%2Fimg%2Ffavicon-neutral.png', | ||
color: 'danger', | ||
}] | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_GHA_JOB_STATUS }} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: Lint and Test Prefect Operator Chart | ||
|
||
"on": | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: Updatecli Dependency Updates | ||
|
||
"on": | ||
schedule: | ||
- cron: 0 15 * * 1 # Monday @ 3pm UTC | ||
workflow_dispatch: {} | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
updatecli_minor: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# required to write to the repo | ||
contents: write | ||
# required to open a pr with updatecli changes | ||
pull-requests: write | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: updatecli-minor-apply | ||
uses: prefecthq/actions-updatecli-apply@main | ||
with: | ||
manifest-path: .github/updatecli/manifest.yaml | ||
run-type: minor |
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